1 description "rcS - runlevel compatibility \
3 This task runs the old sysv-rc startup scripts."
9 emits all-swaps filesystem local-filesystems root-filesystem virtual-filesystems runlevel
10 emits pld.sysinit-done
14 # Note: there can be no previous runlevel here, if we have one it's bad
15 # information (we enter rc1 not rcS for maintenance). Run /etc/rc.d/rc
16 # without information so that it defaults to previous=N runlevel=S.
18 exec /etc/rc.d/rc.sysinit
21 if [ "$UPSTART_EVENTS" = "startup" ]; then
22 runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab)
23 [ -z "$runlevel" ] && runlevel="3"
24 for t in $(cat /proc/cmdline); do
26 -s|single|S|s) runlevel="S" ;;
27 [1-9]) runlevel="$t" ;;
30 exec telinit $runlevel