misc BSD fixes

This commit is contained in:
Roy Marples
2007-11-21 15:46:56 +00:00
parent 872a31b215
commit 41c00eda37
4 changed files with 31 additions and 12 deletions

View File

@@ -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