]> git.pld-linux.org Git - projects/rc-scripts.git/blame - init/rcS-sulogin.conf
Updated.
[projects/rc-scripts.git] / init / rcS-sulogin.conf
CommitLineData
3f2e803a
JK
1description "rcS-sulogin - 'single-user' runlevel compatibility \
2\
3This task runs /bin/sh during 'single-user' mode, \
4then continues to the default runlevel."
5
6start on runlevel S
7stop on runlevel [!S]
8
9emits runlevel
10
11console owner
12script
13 exec /bin/sh
14end script
2109dfea 15
3f2e803a
JK
16post-stop script
17 if [ "$RUNLEVEL" = "S" ]; then
18 runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab)
19 [ -z "$runlevel" ] && runlevel="3"
20 exec telinit $runlevel
21 fi
22end script
This page took 0.031661 seconds and 4 git commands to generate.