diff options
author | Kurt J. Bosch <kjb-temp-2009@alpenjodel.de> | 2011-06-24 16:56:36 +0200 |
---|---|---|
committer | Kurt J. Bosch <kjb-temp-2009@alpenjodel.de> | 2011-06-24 16:56:36 +0200 |
commit | 339d0a10258a8cf862c84b5f26cdd042dfeca8c2 (patch) | |
tree | d2fb89ad816f40d2c4f18a06433792116fac5ce9 /functions | |
parent | 5f1447418e83de7aec8b82eccf645446e28ea771 (diff) |
rc.multi/rc.single: Merge duplicated bootlogd stop code into a function
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -430,6 +430,15 @@ mount_all() { stat_done } +bootlogd_stop() { + [[ -f /run/bootlogd.pid ]] || return 0 + 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 +} + ############################### # Custom hooks in initscripts # ############################### |