From d27d1290a8967c8884fdc4aff766b4b3d922f606 Mon Sep 17 00:00:00 2001 From: "Kurt J. Bosch" Date: Fri, 24 Jun 2011 09:59:32 +0200 Subject: Fix bootlogd not stopped when booting into runlevel '1' --- rc.single | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'rc.single') 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: -- cgit v1.2.3