diff options
author | Bill Nottingham <notting@redhat.com> | 2003-02-19 20:38:48 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-02-19 20:38:48 +0000 |
commit | f25b42a4885c34447c4dc8350ec5f9637e217372 (patch) | |
tree | f1ea4a006c5963b9255baacf13217142a30430a6 /rc.d/rc.sysinit | |
parent | b0de0e43c72103c05dd4632224b887a88228c4b2 (diff) | |
download | initscripts-f25b42a4885c34447c4dc8350ec5f9637e217372.tar initscripts-f25b42a4885c34447c4dc8350ec5f9637e217372.tar.gz initscripts-f25b42a4885c34447c4dc8350ec5f9637e217372.tar.bz2 initscripts-f25b42a4885c34447c4dc8350ec5f9637e217372.tar.xz initscripts-f25b42a4885c34447c4dc8350ec5f9637e217372.zip |
do this better
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-x | rc.d/rc.sysinit | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index ad80efc0..49093c6b 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -35,12 +35,16 @@ if [ "$BOOTUP" = "graphical" ]; then 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 > /dev/tty$i - # For gdm use - > /dev/tty7 - > /dev/tty8 + last=$i done + if [ $last -gt 0 ]; then + > /dev/tty$((last+1)) + > /dev/tty$((last+2)) + fi + echo -n "Setting default font ($SYSFONT): " /sbin/setsysfont if [ $? -eq 0 ]; then |