[arch-projects] [initscripts][PATCH] Clean up ANSI codes from /var/log/boot
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> --- rc.multi | 2 ++ rc.single | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/rc.multi b/rc.multi index 7af9279..9ebf483 100755 --- a/rc.multi +++ b/rc.multi @@ -30,6 +30,8 @@ if [[ -f /run/bootlogd.pid ]]; then /bin/touch /var/log/boot kill $(< /run/bootlogd.pid) /bin/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 # vim: set ts=2 sw=2 noet: diff --git a/rc.single b/rc.single index 91d346b..bb27ddf 100755 --- a/rc.single +++ b/rc.single @@ -54,6 +54,8 @@ 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 -- 1.7.5.4
participants (1)
-
Eric Bélanger