aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/single
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d/single')
-rwxr-xr-xrc.d/init.d/single18
1 files changed, 17 insertions, 1 deletions
diff --git a/rc.d/init.d/single b/rc.d/init.d/single
index 0ae9268e..8f37963a 100755
--- a/rc.d/init.d/single
+++ b/rc.d/init.d/single
@@ -16,9 +16,25 @@ if [ "$1" != "start" ]; then
exit 0
fi
+# killing splashy (#46169)
+update_boot_stage exit
+
+# Kill all processes.
+[ "${BASH+bash}" = bash ] && enable kill
+
+gprintf "Sending all processes the TERM signal...\n"
+kill -15 -1
+sleep 5
+gprintf "Sending all processes the KILL signal..\n"
+kill -9 -1
+
# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear
# Now go to the single user level.
-echo $"Telling INIT to go to single user mode."
+gprintf "Telling INIT to go to single user mode.\n"
+
+# init hangs if LANG is set
+unset LANG
+
exec init -t1 S