diff options
author | Bill Nottingham <notting@redhat.com> | 2009-12-09 16:12:26 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2009-12-09 16:12:26 -0500 |
commit | 12dcbfe79bbc89b23f775bfd847eb53ec17b2971 (patch) | |
tree | de4e95b14ec6c0eb0b22450e70861e8c953cfeee /init/rcS-sulogin.conf | |
parent | 307e970174f12e4a808684151f132df1677c3999 (diff) | |
parent | 5df584569b80bb8977f181e16b0de47fb4df08f1 (diff) | |
download | initscripts-12dcbfe79bbc89b23f775bfd847eb53ec17b2971.tar initscripts-12dcbfe79bbc89b23f775bfd847eb53ec17b2971.tar.gz initscripts-12dcbfe79bbc89b23f775bfd847eb53ec17b2971.tar.bz2 initscripts-12dcbfe79bbc89b23f775bfd847eb53ec17b2971.tar.xz initscripts-12dcbfe79bbc89b23f775bfd847eb53ec17b2971.zip |
Merge branch 'upstart-0.6.0-branch'
Diffstat (limited to 'init/rcS-sulogin.conf')
-rw-r--r-- | init/rcS-sulogin.conf | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/init/rcS-sulogin.conf b/init/rcS-sulogin.conf new file mode 100644 index 00000000..4f1f1f13 --- /dev/null +++ b/init/rcS-sulogin.conf @@ -0,0 +1,21 @@ +# rcS-sulogin - "single-user" runlevel compatibility +# +# This task runs /bin/bash during "single-user" mode, +# then continues to the default runlevel. + +start on runlevel S + +stop on runlevel [!S] + +console owner +script + plymouth --hide-splash || true + exec /bin/bash +end script +post-stop script + if [ "$RUNLEVEL" = "S" ]; then + runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab) + [ -z "$runlevel" ] && runlevel="3" + exec telinit $runlevel + fi +end script |