[arch-projects] [initscripts] [PATCH 10/13] Fix bootlogd not stopped when booting into runlevel '1'
Kurt J. Bosch
kjb-temp-2009 at alpenjodel.de
Fri Jun 24 05:15:00 EDT 2011
---
rc.single | 16 ++++++++--------
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:
--
1.7.1
More information about the arch-projects
mailing list