aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
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