SOURCES: acpid.battery.sh - make it handle every battery

havner havner at pld-linux.org
Sun Aug 20 20:12:13 CEST 2006


Author: havner                       Date: Sun Aug 20 18:12:13 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- make it handle every battery

---- Files affected:
SOURCES:
   acpid.battery.sh (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SOURCES/acpid.battery.sh
diff -u SOURCES/acpid.battery.sh:1.4 SOURCES/acpid.battery.sh:1.5
--- SOURCES/acpid.battery.sh:1.4	Fri Aug 18 04:39:09 2006
+++ SOURCES/acpid.battery.sh	Sun Aug 20 20:12:08 2006
@@ -11,7 +11,7 @@
 set $*
 
 AC=/proc/acpi/ac_adapter/AC
-BAT=/proc/acpi/battery/BAT0
+BAT=/proc/acpi/battery/$2
 
 # get the AC connector state (plugged/unplugged) from /proc filesystem.
 AC_STATE=`sed -n 's/^.*\(off\|on\)-line.*/\1/p' $AC/state`
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/acpid.battery.sh?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list