aboutsummaryrefslogtreecommitdiff
path: root/rc.single
diff options
context:
space:
mode:
Diffstat (limited to 'rc.single')
-rwxr-xr-xrc.single10
1 files changed, 7 insertions, 3 deletions
diff --git a/rc.single b/rc.single
index c754eb1..bb27ddf 100755
--- a/rc.single
+++ b/rc.single
@@ -50,9 +50,13 @@ if [[ $RUNLEVEL = 1 ]]; then
exec init -t1 S
fi
-touch /var/log/boot
-kill $(< /run/bootlogd.pid)
-rm /run/bootlogd.pid
+if [[ -f /run/bootlogd.pid ]]; then
+ touch /var/log/boot
+ kill $(< /run/bootlogd.pid)
+ rm -f /run/bootlogd.pid
+ sed -i -r -e 's/\^\[\[[0-9]?;?[0-9]?[0-9]?;?[0-9]?[0-9]?[ms]//g' \
+ -e 's/\^\[(\[151|%)G//g' /var/log/boot
+fi
# End of file
# vim: set ts=2 sw=2 noet: