aboutsummaryrefslogtreecommitdiff
path: root/rc.single
diff options
context:
space:
mode:
authorKurt J. Bosch <kjb-temp-2009@alpenjodel.de>2011-06-24 16:56:36 +0200
committerKurt J. Bosch <kjb-temp-2009@alpenjodel.de>2011-06-24 16:56:36 +0200
commit339d0a10258a8cf862c84b5f26cdd042dfeca8c2 (patch)
treed2fb89ad816f40d2c4f18a06433792116fac5ce9 /rc.single
parent5f1447418e83de7aec8b82eccf645446e28ea771 (diff)
downloadinitscripts-339d0a10258a8cf862c84b5f26cdd042dfeca8c2.tar.xz
rc.multi/rc.single: Merge duplicated bootlogd stop code into a function
Diffstat (limited to 'rc.single')
-rwxr-xr-xrc.single8
1 files changed, 1 insertions, 7 deletions
diff --git a/rc.single b/rc.single
index 46b502c..d630736 100755
--- a/rc.single
+++ b/rc.single
@@ -22,13 +22,7 @@ fi
run_hook single_end
-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
+bootlogd_stop
if [[ $RUNLEVEL = 1 ]]; then
printsep