slitaz-boot-scripts diff usr/bin/bootlog @ rev 414

/etc/init.d/bootopts.sh: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 29 21:12:39 2015 +0200 (2015-08-29)
parents 175315b7699d
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/usr/bin/bootlog	Sat Aug 29 21:12:39 2015 +0200
     1.3 @@ -0,0 +1,16 @@
     1.4 +#!/bin/sh
     1.5 +#
     1.6 +# Display SliTaz boot log messages
     1.7 +#
     1.8 +
     1.9 +catlog() {
    1.10 +	cat /var/log/dmesg.log /var/log/boot.log | sed "s/.\[3g.*\]R//"
    1.11 +}
    1.12 +
    1.13 +case "$1" in
    1.14 +	box) catlog | sed -e s'///'g -e s'/\[1;3[0-9]m//'g \
    1.15 +		-e s'/\[*.0G\[/ /'g -e s'/\[0;39m.*//'g | yad \
    1.16 +		--text-info --title="Boot Log" --window-icon=text-plain \
    1.17 +		--width=600 --height=400 --button=gtk-close:0 ;;
    1.18 +	*) catlog ;;
    1.19 +esac