From 71eda6a3c150d0b9773a809abd40831c0a9d376f Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 24 Feb 2003 21:54:17 +0000 Subject: init vts even if consoletype isn't vt (serial console with vts active) --- rc.d/rc.sysinit | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 49093c6b..e7a5dd51 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -34,16 +34,17 @@ if [ "$BOOTUP" = "graphical" ]; then fi fi -if [ "`/sbin/consoletype`" = "vt" -a -x /sbin/setsysfont ]; then - last=0 - for i in `LC_ALL=C grep '^[0-9]*.*respawn:/sbin/mingetty' /etc/inittab | sed 's/^.* tty\([0-9][0-9]*\).*/\1/g'`; do +last=0 +for i in `LC_ALL=C grep '^[0-9]*.*respawn:/sbin/mingetty' /etc/inittab | sed 's/^.* tty\([0-9][0-9]*\).*/\1/g'`; do > /dev/tty$i last=$i - done - if [ $last -gt 0 ]; then +done +if [ $last -gt 0 ]; then > /dev/tty$((last+1)) > /dev/tty$((last+2)) - fi +fi + +if [ "`/sbin/consoletype`" = "vt" -a -x /sbin/setsysfont ]; then echo -n "Setting default font ($SYSFONT): " /sbin/setsysfont -- cgit v1.2.1