Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates > by-pkgid > 929a45cda68c1bba8856fb72d8a577b2 > files > 14

initscripts-9.12.1-1.fc13.i686.rpm

# 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
		[ -f /etc/inittab ] && runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab)
		[ -z "$runlevel" ] && runlevel="3"
		exec telinit $runlevel
	fi
end script