# HG changeset patch # User Pascal Bellard # Date 1239629525 0 # Node ID 28fee072d4c3eafa9715e534014e6d816070d38c # Parent ddfcd91f93aa5912f8230c7cb075f5ef4dcb5845 tazhw: max one batt in panel diff -r ddfcd91f93aa -r 28fee072d4c3 tinyutils/tazhw --- a/tinyutils/tazhw Sat Apr 11 01:13:16 2009 +0200 +++ b/tinyutils/tazhw Mon Apr 13 13:32:05 2009 +0000 @@ -105,6 +105,7 @@ load_module echo " $mod" >> /var/lib/detected-modules done + grep -qs batt /etc/lxpanel/default/panels/panel || sed -i 's/= cpu/= batt\n}\n\nPlugin {\n type = cpu/' \ /etc/lxpanel/default/panels/panel 2> /dev/null fi