From 4977dc538d0e9906b2299c2fe9818156813838c1 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 3 Dec 2009 17:05:46 -0500 Subject: Fix start-ttys for the correct number of ttys, and for X-on-tty1. --- init/start-ttys.conf | 2 ++ 1 file changed, 2 insertions(+) (limited to 'init') diff --git a/init/start-ttys.conf b/init/start-ttys.conf index c6c6e141..1528cf4b 100644 --- a/init/start-ttys.conf +++ b/init/start-ttys.conf @@ -4,10 +4,12 @@ start on stopped rc RUNLEVEL=[2345] env ACTIVE_CONSOLES=/dev/tty[1-6] +env X_TTY=/dev/tty1 task script . /etc/sysconfig/init for tty in $(echo $ACTIVE_CONSOLES) ; do + [ "$RUNLEVEL" = "5" -a "$tty" = "$X_TTY" ] && continue initctl start tty TTY=$tty done end script -- cgit v1.2.1