aboutsummaryrefslogtreecommitdiff
path: root/init.d.BSD
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-20 15:49:04 +0000
committerRoy Marples <roy@marples.name>2007-11-20 15:49:04 +0000
commit739d51c349c3e046e1f895edd5f0784c1789ce21 (patch)
tree646e04e95e4468e12a235f6bef7a4f3109b7f32a /init.d.BSD
parent588466058266ec2b17976d599232b928c0eb08be (diff)
Document syscons MODE and allow to run on all terminals
Diffstat (limited to 'init.d.BSD')
-rw-r--r--init.d.BSD/Makefile2
-rw-r--r--init.d.BSD/syscons9
2 files changed, 6 insertions, 5 deletions
diff --git a/init.d.BSD/Makefile b/init.d.BSD/Makefile
index f1496ae4..5e035284 100644
--- a/init.d.BSD/Makefile
+++ b/init.d.BSD/Makefile
@@ -1,5 +1,5 @@
DIR = /etc/init.d
-BIN = clock moused powerd syscons sysctl syslogd
+BIN = clock moused powerd rpcbind syscons sysctl syslogd
TOPDIR = ..
include $(TOPDIR)/default.mk
diff --git a/init.d.BSD/syscons b/init.d.BSD/syscons
index 2a45399a..b74051c5 100644
--- a/init.d.BSD/syscons
+++ b/init.d.BSD/syscons
@@ -30,13 +30,14 @@ depend() {
start() {
if [ -n "${MODE}" ]; then
ebegin "Setting mode to ${MODE}"
- vidcontrol "${MODE}"
+ local tty=
+ for tty in /dev/tty*; do
+ [ -e "${tty}" ] || continue
+ vidcontrol "${MODE}" <"${tty}" >"${tty}" 2>&1
+ done
eend $?
fi
- # XXX: This should handle serial consoles.
-
- # Set the keymap.
if [ -n "${KEYMAP}" ]; then
ebegin "Setting keymap to ${KEYMAP}"
kbdcontrol -l ${KEYMAP} </dev/console