aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions9
1 files changed, 9 insertions, 0 deletions
diff --git a/functions b/functions
index 0c34cb9..b64f78b 100644
--- a/functions
+++ b/functions
@@ -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 #
###############################