aboutsummaryrefslogtreecommitdiff
path: root/rc.single
diff options
context:
space:
mode:
authorKurt J. Bosch <kjb-temp-2009@alpenjodel.de>2011-06-24 09:59:32 +0200
committerKurt J. Bosch <kjb-temp-2009@alpenjodel.de>2011-06-24 13:52:59 +0200
commitd27d1290a8967c8884fdc4aff766b4b3d922f606 (patch)
tree72bd4ff3f55bbe932ec180f9a3bc3f429d9dde85 /rc.single
parent3d21e687f1b3b652fd70b59e8fe67736091a40be (diff)
downloadinitscripts-d27d1290a8967c8884fdc4aff766b4b3d922f606.tar.xz
Fix bootlogd not stopped when booting into runlevel '1'
Diffstat (limited to 'rc.single')
-rwxr-xr-xrc.single16
1 files changed, 8 insertions, 8 deletions
diff --git a/rc.single b/rc.single
index 1a95ee9..74368fd 100755
--- a/rc.single
+++ b/rc.single
@@ -35,14 +35,6 @@ fi
run_hook single_end
-if [[ $RUNLEVEL = 1 ]]; then
- printsep
- printhl "Entering single-user mode..."
- # make sure /dev/initctl is in place
- kill -HUP 1
- exec init -t1 S
-fi
-
if [[ -f /run/bootlogd.pid ]]; then
touch /var/log/boot
kill $(< /run/bootlogd.pid)
@@ -51,5 +43,13 @@ if [[ -f /run/bootlogd.pid ]]; then
-e 's/\^\[(\[151|%)G//g' /var/log/boot
fi
+if [[ $RUNLEVEL = 1 ]]; then
+ printsep
+ printhl "Entering single-user mode..."
+ # make sure /dev/initctl is in place
+ kill -HUP 1
+ exec init -t1 S
+fi
+
# End of file
# vim: set ts=2 sw=2 noet: