From 41c00eda37298bbc88ae79dd701eaa444659f995 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 21 Nov 2007 15:46:56 +0000 Subject: misc BSD fixes --- init.d.BSD/syscons | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'init.d.BSD/syscons') 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 -- cgit v1.2.3