aboutsummaryrefslogtreecommitdiffstats
path: root/init/rcS-sulogin.conf
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-12-03 14:37:12 -0500
committerBill Nottingham <notting@redhat.com>2009-12-03 14:37:12 -0500
commitdac32879b0de17d721457801fac65604f937ef00 (patch)
treedb117621e728b4141cdf538e10ec53d731d81e42 /init/rcS-sulogin.conf
parent79b2b232cb34f7df3e440968240975e44c4b8fc7 (diff)
downloadinitscripts-dac32879b0de17d721457801fac65604f937ef00.tar
initscripts-dac32879b0de17d721457801fac65604f937ef00.tar.gz
initscripts-dac32879b0de17d721457801fac65604f937ef00.tar.bz2
initscripts-dac32879b0de17d721457801fac65604f937ef00.tar.xz
initscripts-dac32879b0de17d721457801fac65604f937ef00.zip
Coalesce the multiple rcX and ttyX jobs into single files.
Adjust other jobs accordingly. Use a configuration parameter for what ttys to start.
Diffstat (limited to 'init/rcS-sulogin.conf')
-rw-r--r--init/rcS-sulogin.conf5
1 files changed, 2 insertions, 3 deletions
diff --git a/init/rcS-sulogin.conf b/init/rcS-sulogin.conf
index d3aa20d1..4f1f1f13 100644
--- a/init/rcS-sulogin.conf
+++ b/init/rcS-sulogin.conf
@@ -5,16 +5,15 @@
start on runlevel S
-stop on runlevel
+stop on runlevel [!S]
console owner
script
- runlevel --set S >/dev/null || true
plymouth --hide-splash || true
exec /bin/bash
end script
post-stop script
- if [ "$1" = "S" ]; then
+ if [ "$RUNLEVEL" = "S" ]; then
runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab)
[ -z "$runlevel" ] && runlevel="3"
exec telinit $runlevel