aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-12-03 17:05:46 -0500
committerBill Nottingham <notting@redhat.com>2009-12-03 17:05:46 -0500
commit4977dc538d0e9906b2299c2fe9818156813838c1 (patch)
tree3b513b0eceb6f20bef9aabbecbad78f61fc423e1 /init
parentb1d34fc194393241cb9dcdae259f87e928f256ec (diff)
downloadinitscripts-4977dc538d0e9906b2299c2fe9818156813838c1.tar
initscripts-4977dc538d0e9906b2299c2fe9818156813838c1.tar.gz
initscripts-4977dc538d0e9906b2299c2fe9818156813838c1.tar.bz2
initscripts-4977dc538d0e9906b2299c2fe9818156813838c1.tar.xz
initscripts-4977dc538d0e9906b2299c2fe9818156813838c1.zip
Fix start-ttys for the correct number of ttys, and for X-on-tty1.
Diffstat (limited to 'init')
-rw-r--r--init/start-ttys.conf2
1 files changed, 2 insertions, 0 deletions
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