slitaz-boot-scripts diff bin/bootlog @ rev 330

Added tag 5.3.1 for changeset 11d0305fa1c6
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Jan 17 19:14:14 2013 +0100 (2013-01-17)
parents 9fdf071862a6
children
line diff
     1.1 --- a/bin/bootlog	Wed Apr 06 05:00:51 2011 +0200
     1.2 +++ b/bin/bootlog	Thu Jan 17 19:14:14 2013 +0100
     1.3 @@ -1,4 +1,16 @@
     1.4  #!/bin/sh
     1.5 -# tazbootlog: Display SliTaz boot log messages.
     1.6  #
     1.7 -cat /var/log/dmesg.log /var/log/boot.log | sed "s/.\[3g.*\]R//"
     1.8 +# Display SliTaz boot log messages
     1.9 +#
    1.10 +
    1.11 +catlog() {
    1.12 +	cat /var/log/dmesg.log /var/log/boot.log | sed "s/.\[3g.*\]R//"
    1.13 +}
    1.14 +
    1.15 +case "$1" in
    1.16 +	box) catlog | sed -e s'///'g -e s'/\[1;3[0-9]m//'g \
    1.17 +		-e s'/\[*.0G\[/ /'g -e s'/\[0;39m.*//'g | yad \
    1.18 +		--text-info --title="Boot Log" --window-icon=text-plain \
    1.19 +		--width=600 --height=400 --button=gtk-close:0 ;;
    1.20 +	*) catlog ;;
    1.21 +esac