diff options
author | Roy Marples <roy@marples.name> | 2007-11-21 15:46:56 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-11-21 15:46:56 +0000 |
commit | 41c00eda37298bbc88ae79dd701eaa444659f995 (patch) | |
tree | 05d26de742431abea7191cc29e1500cf3488a7db /init.d.BSD/syscons | |
parent | 872a31b2158ee65ad07e6ba04e366624af2d0fa5 (diff) |
misc BSD fixes
Diffstat (limited to 'init.d.BSD/syscons')
-rw-r--r-- | init.d.BSD/syscons | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/init.d.BSD/syscons b/init.d.BSD/syscons index b74051c5..5fc0e7ce 100644 --- a/init.d.BSD/syscons +++ b/init.d.BSD/syscons @@ -29,11 +29,10 @@ depend() { start() { if [ -n "${MODE}" ]; then - ebegin "Setting mode to ${MODE}" - local tty= - for tty in /dev/tty*; do - [ -e "${tty}" ] || continue - vidcontrol "${MODE}" <"${tty}" >"${tty}" 2>&1 + ebegin "Setting mode to ${MODE} for all screens" + for v in /dev/ttyv*; do + [ -c "${v}" ] || continue + vidcontrol "${MODE}" <"${v}" done eend $? fi @@ -96,7 +95,8 @@ start() { if [ -n "${KBDFLAGS}" ]; then ebegin "Setting keyboard flags for all screens" for v in /dev/ttyv*; do - kbdcontrol ${KBDFLAGS} <${v} &>${v} + [ -c "${v}" ] || continue + kbdcontrol ${KBDFLAGS} <"${v}" done eend $? fi |