| 3 |
- |
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 |
#
|
|
|
6 |
# Do not edit this file directly. If you want to change the behaviour,
|
|
|
7 |
# please create a file rcS-sulogin.override and put your changes there.
|
|
|
8 |
|
|
|
9 |
start on runlevel S
|
|
|
10 |
|
|
|
11 |
stop on runlevel [!S]
|
|
|
12 |
|
|
|
13 |
console owner
|
|
|
14 |
script
|
|
|
15 |
. /etc/sysconfig/init
|
|
|
16 |
plymouth --hide-splash || true
|
|
|
17 |
[ -z "$SINGLE" ] && SINGLE=/sbin/sushell
|
|
|
18 |
exec $SINGLE
|
|
|
19 |
end script
|
|
|
20 |
post-stop script
|
|
|
21 |
if [ "$RUNLEVEL" = "S" ]; then
|
|
|
22 |
[ -f /etc/inittab ] && runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab)
|
|
|
23 |
[ -z "$runlevel" ] && runlevel="3"
|
|
|
24 |
exec telinit $runlevel
|
|
|
25 |
fi
|
|
|
26 |
end script
|