Document syscons MODE and allow to run on all terminals

This commit is contained in:
Roy Marples 2007-11-20 15:49:04 +00:00
parent 5884660582
commit 739d51c349
3 changed files with 10 additions and 5 deletions

View File

@ -1,5 +1,9 @@
# Example syscons config file. This is the place to set things like keymap, etc. # Example syscons config file. This is the place to set things like keymap, etc.
# Set the video mode - you should check the vidcontrol man page for valid modes
# NOTE:- This will blank the screen after this command is run
#MODE="VGA_90x60"
# Set the keymap to "uk.iso". # Set the keymap to "uk.iso".
#KEYMAP="uk.iso" #KEYMAP="uk.iso"

View File

@ -1,5 +1,5 @@
DIR = /etc/init.d DIR = /etc/init.d
BIN = clock moused powerd syscons sysctl syslogd BIN = clock moused powerd rpcbind syscons sysctl syslogd
TOPDIR = .. TOPDIR = ..
include $(TOPDIR)/default.mk include $(TOPDIR)/default.mk

View File

@ -30,13 +30,14 @@ depend() {
start() { start() {
if [ -n "${MODE}" ]; then if [ -n "${MODE}" ]; then
ebegin "Setting mode to ${MODE}" 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 $? eend $?
fi fi
# XXX: This should handle serial consoles.
# Set the keymap.
if [ -n "${KEYMAP}" ]; then if [ -n "${KEYMAP}" ]; then
ebegin "Setting keymap to ${KEYMAP}" ebegin "Setting keymap to ${KEYMAP}"
kbdcontrol -l ${KEYMAP} </dev/console kbdcontrol -l ${KEYMAP} </dev/console