aboutsummaryrefslogtreecommitdiffstats
path: root/init/rcS.conf
diff options
context:
space:
mode:
Diffstat (limited to 'init/rcS.conf')
-rw-r--r--init/rcS.conf10
1 files changed, 10 insertions, 0 deletions
diff --git a/init/rcS.conf b/init/rcS.conf
index 6f2e7d17..32113a83 100644
--- a/init/rcS.conf
+++ b/init/rcS.conf
@@ -12,6 +12,16 @@ task
# information (we enter rc1 not rcS for maintenance). Run /etc/rc.d/rc
# without information so that it defaults to previous=N runlevel=S.
console output
+pre-start script
+ for t in $(cat /proc/cmdline); do
+ case $t in
+ emergency)
+ start rcS-emergency
+ break
+ ;;
+ esac
+ done
+end script
exec /etc/rc.d/rc.sysinit
post-stop script
if [ "$UPSTART_EVENTS" = "startup" ]; then