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

init: use busybox mount
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 10 10:33:58 2014 +0200 (2014-06-10)
parents 9fdf071862a6
children
line diff
     1.1 --- a/bin/bootlog	Wed Apr 06 05:00:51 2011 +0200
     1.2 +++ b/bin/bootlog	Tue Jun 10 10:33:58 2014 +0200
     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