diff options
author | Kurt J. Bosch <kjb-temp-2009@alpenjodel.de> | 2011-06-24 09:59:32 +0200 |
---|---|---|
committer | Kurt J. Bosch <kjb-temp-2009@alpenjodel.de> | 2011-06-24 13:52:59 +0200 |
commit | d27d1290a8967c8884fdc4aff766b4b3d922f606 (patch) | |
tree | 72bd4ff3f55bbe932ec180f9a3bc3f429d9dde85 | |
parent | 3d21e687f1b3b652fd70b59e8fe67736091a40be (diff) | |
download | initscripts-d27d1290a8967c8884fdc4aff766b4b3d922f606.tar.xz |
Fix bootlogd not stopped when booting into runlevel '1'
-rwxr-xr-x | rc.single | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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: |