source: projects/initscripts/trunk/init/rcS-sulogin.conf @ 1108

Revision 1108, 494 bytes checked in by daisuke, 14 years ago (diff)

import initscripts-8.90.6 from internal cvs repository

Line 
1# rcS-sulogin - "single-user" runlevel compatibility
2#
3# This task runs /bin/bash during "single-user" mode,
4# then continues to the default runlevel.
5
6start on runlevel S
7
8stop on runlevel [!S]
9
10console owner
11script
12        plymouth --hide-splash || true
13        exec /bin/bash
14end script
15post-stop script
16        if [ "$RUNLEVEL" = "S" ]; then
17                runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab)
18                [ -z "$runlevel" ] && runlevel="3"
19                exec telinit $runlevel
20        fi
21end script
Note: See TracBrowser for help on using the repository browser.