slitaz-tools rev 428

tazhw: dont load battery module (now built-in)
author Christophe Lincoln <pankso@slitaz.org>
date Sun Feb 14 23:34:35 2010 +0100 (2010-02-14)
parents 9ba18508c095
children 77e6883bfa73
files tinyutils/tazhw
line diff
     1.1 --- a/tinyutils/tazhw	Tue Feb 09 21:25:58 2010 +0100
     1.2 +++ b/tinyutils/tazhw	Sun Feb 14 23:34:35 2010 +0100
     1.3 @@ -100,11 +100,6 @@
     1.4  		done
     1.5  		# yenta_socket = laptop
     1.6  		if `lsmod | grep -q "yenta_socket"`; then
     1.7 -			for mod in ac battery
     1.8 -			do
     1.9 -				load_module
    1.10 -				echo " $mod" >> /var/lib/detected-modules
    1.11 -			done
    1.12  			grep -qs batt /etc/lxpanel/default/panels/panel || 
    1.13  			sed -i 's/= cpu/= batt\n}\n\nPlugin {\n    type = cpu/' \
    1.14  				/etc/lxpanel/default/panels/panel 2> /dev/null