slitaz-boot-scripts view bin/bootlog @ rev 302

Huge clean, colored rcS, faster, fix sound and other devices (used need a devtmpfs mounted on /dev) disabled logging for now
author Christophe Lincoln <pankso@slitaz.org>
date Fri Jun 01 21:46:07 2012 +0200 (2012-06-01)
parents 9fdf071862a6
children
line source
1 #!/bin/sh
2 #
3 # Display SliTaz boot log messages
4 #
6 catlog() {
7 cat /var/log/dmesg.log /var/log/boot.log | sed "s/.\[3g.*\]R//"
8 }
10 case "$1" in
11 box) catlog | sed -e s'///'g -e s'/\[1;3[0-9]m//'g \
12 -e s'/\[*.0G\[/ /'g -e s'/\[0;39m.*//'g | yad \
13 --text-info --title="Boot Log" --window-icon=text-plain \
14 --width=600 --height=400 --button=gtk-close:0 ;;
15 *) catlog ;;
16 esac