slitaz-tools rev 329
tazhw: max one batt in panel
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 13 13:32:05 2009 +0000 (2009-04-13) |
parents | ddfcd91f93aa |
children | 3982a2489bfc |
files | tinyutils/tazhw |
line diff
1.1 --- a/tinyutils/tazhw Sat Apr 11 01:13:16 2009 +0200 1.2 +++ b/tinyutils/tazhw Mon Apr 13 13:32:05 2009 +0000 1.3 @@ -105,6 +105,7 @@ 1.4 load_module 1.5 echo " $mod" >> /var/lib/detected-modules 1.6 done 1.7 + grep -qs batt /etc/lxpanel/default/panels/panel || 1.8 sed -i 's/= cpu/= batt\n}\n\nPlugin {\n type = cpu/' \ 1.9 /etc/lxpanel/default/panels/panel 2> /dev/null 1.10 fi