aboutsummaryrefslogtreecommitdiff
path: root/init.d.BSD/syscons
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-23 12:04:11 +0000
committerRoy Marples <roy@marples.name>2007-11-23 12:04:11 +0000
commitd81def80b00a3dbcb4f8980f4503c4d659b48a2a (patch)
tree64a5df4281620cacbc1f03838d42e88167886fc9 /init.d.BSD/syscons
parentf077f179edaeb746b267421baa29ec751c38b713 (diff)
Move /etc/conf.d/rc to /etc/rc.conf.
Lowercase all configurable variables, non configurations remain uppercase. Replace rc_env_bool with rc_yesno. Split localmount info procfs (Linux) and dumpon, savecore (BSD)
Diffstat (limited to 'init.d.BSD/syscons')
-rw-r--r--init.d.BSD/syscons42
1 files changed, 20 insertions, 22 deletions
diff --git a/init.d.BSD/syscons b/init.d.BSD/syscons
index 5fc0e7ce..ae174f3b 100644
--- a/init.d.BSD/syscons
+++ b/init.d.BSD/syscons
@@ -28,30 +28,29 @@ depend() {
}
start() {
- if [ -n "${MODE}" ]; then
- ebegin "Setting mode to ${MODE} for all screens"
+ if [ -n "${allscreen_flags}" ]; then
+ ebegin "Setting mode to ${allscreen_flags} for all screens"
for v in /dev/ttyv*; do
- [ -c "${v}" ] || continue
- vidcontrol "${MODE}" <"${v}"
+ vidcontrol ${allscreen_flags} <"${v}"
done
eend $?
fi
- if [ -n "${KEYMAP}" ]; then
- ebegin "Setting keymap to ${KEYMAP}"
- kbdcontrol -l ${KEYMAP} </dev/console
+ if [ -n "${keymap}" ]; then
+ ebegin "Setting keymap to ${keymap}"
+ kbdcontrol -l ${keymap} </dev/console
eend $?
fi
- if [ -n "${KEYRATE}" ]; then
- ebegin "Setting keyrate to ${KEYRATE}"
- kbdcontrol -r ${KEYRATE} </dev/console
+ if [ -n "${keyrate}" ]; then
+ ebegin "Setting keyrate to ${keyrate}"
+ kbdcontrol -r ${keyrate} </dev/console
eend $?
fi
- if [ -n "${KEYCHANGE}" ]; then
+ if [ -n "${keychange}" ]; then
ebegin "Changing function keys"
- eval set -- "${KEYCHANGE}"
+ eval set -- "${keychange}"
eindent
while [ $# -gt 0 ] ; do
veinfo "F$1 -> \`$2'"
@@ -62,14 +61,14 @@ start() {
eoutdent
fi
- if [ -n "${CURSOR}" ]; then
+ if [ -n "${cursor}" ]; then
ebegin "Setting cursor"
- vidcontrol -c ${CURSOR}
+ vidcontrol -c ${cursor}
eend $?
fi
local v= f=
- for v in FONT8x16 FONT8x14 FONT8x8; do
+ for v in font8x16 font8x14 font8x8; do
f=$(eval \$"${v}")
if [ -n "${f}" ]; then
ebegin "Setting font ${f}"
@@ -78,25 +77,24 @@ start() {
fi
done
- if [ -n "${BLANKTIME}" ]; then
+ if [ -n "${blanktime}" ]; then
ebegin "Setting blanktime"
- vidcontrol -t ${BLANKTIME}
+ vidcontrol -t ${blanktime}
eend $?
fi
- if [ -n "${SAVER}" ]; then
+ if [ -n "${saver}" ]; then
local i=
for i in $(kldstat | sed -n -e 's/.* \(splash_.*\)/\1/p'); do
kldunload "${i}"
done
- kldstat -v | grep -q _saver || kldload ${SAVER}_saver
+ kldstat -v | grep -q _saver || kldload ${saver}_saver
fi
- if [ -n "${KBDFLAGS}" ]; then
+ if [ -n "${kbdflags}" ]; then
ebegin "Setting keyboard flags for all screens"
for v in /dev/ttyv*; do
- [ -c "${v}" ] || continue
- kbdcontrol ${KBDFLAGS} <"${v}"
+ kbdcontrol ${kbdflags} <${v}
done
eend $?
fi