UPDATE: the power_supply device selection
This commit is contained in:
parent
3f2466af44
commit
a43fd55235
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ source $current_dir/utils.sh
|
|||
|
||||
linux_acpi() {
|
||||
arg=$1
|
||||
BAT=$(ls -d /sys/class/power_supply/BAT* | head -1)
|
||||
BAT=$(ls -d /sys/class/power_supply/*)
|
||||
if [ ! -x "$(which acpi 2> /dev/null)" ];then
|
||||
case "$arg" in
|
||||
status)
|
||||
|
|
Loading…
Reference in a new issue