From d0b7d600da518778b2a5d7c08785ea328fbaf2e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20B=C3=A9langer?= Date: Sun, 5 Jun 2011 23:23:57 -0400 Subject: Clean up ANSI codes from /var/log/boot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Eric BĂ©langer Signed-off-by: Tom Gundersen --- rc.single | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'rc.single') 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: -- cgit v1.2.3