diff options
author | Bill Nottingham <notting@redhat.com> | 2003-02-24 21:54:17 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-02-24 21:54:17 +0000 |
commit | 71eda6a3c150d0b9773a809abd40831c0a9d376f (patch) | |
tree | f57d5224cc1f5d34cb2a019b5c2466934bd9c6bd | |
parent | 52adec761dd0de9f57d5f37cec076cdf3259911d (diff) | |
download | initscripts-71eda6a3c150d0b9773a809abd40831c0a9d376f.tar initscripts-71eda6a3c150d0b9773a809abd40831c0a9d376f.tar.gz initscripts-71eda6a3c150d0b9773a809abd40831c0a9d376f.tar.bz2 initscripts-71eda6a3c150d0b9773a809abd40831c0a9d376f.tar.xz initscripts-71eda6a3c150d0b9773a809abd40831c0a9d376f.zip |
init vts even if consoletype isn't vt (serial console with vts active)
-rwxr-xr-x | rc.d/rc.sysinit | 13 |
1 files 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 |