diff options
author | Bill Nottingham <notting@redhat.com> | 2009-12-03 17:05:46 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2009-12-03 17:05:46 -0500 |
commit | 4977dc538d0e9906b2299c2fe9818156813838c1 (patch) | |
tree | 3b513b0eceb6f20bef9aabbecbad78f61fc423e1 | |
parent | b1d34fc194393241cb9dcdae259f87e928f256ec (diff) | |
download | initscripts-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.
-rw-r--r-- | init/start-ttys.conf | 2 |
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 |