slitaz-boot-scripts annotate usr/bin/bootlog @ rev 393
network.sh: better handle WEP connections, handle EAP, store Wi-Fi neworks by default; network.conf: migrate to extended format to support EAP arguments, and few more.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Mar 23 02:01:21 2015 +0200 (2015-03-23) |
parents | bin/bootlog@175315b7699d |
children |
rev | line source |
---|---|
pankso@172 | 1 #!/bin/sh |
pankso@172 | 2 # |
pankso@302 | 3 # Display SliTaz boot log messages |
pankso@302 | 4 # |
pankso@302 | 5 |
pankso@302 | 6 catlog() { |
pankso@302 | 7 cat /var/log/dmesg.log /var/log/boot.log | sed "s/.\[3g.*\]R//" |
pankso@302 | 8 } |
pankso@302 | 9 |
pankso@302 | 10 case "$1" in |
pankso@302 | 11 box) catlog | sed -e s'///'g -e s'/\[1;3[0-9]m//'g \ |
pankso@302 | 12 -e s'/\[*.0G\[/ /'g -e s'/\[0;39m.*//'g | yad \ |
pankso@302 | 13 --text-info --title="Boot Log" --window-icon=text-plain \ |
pankso@302 | 14 --width=600 --height=400 --button=gtk-close:0 ;; |
pankso@302 | 15 *) catlog ;; |
pankso@302 | 16 esac |