aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit10
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