Merge pull request #245 from dev-onejun/battery-selections
UPDATE: the power_supply device selection
This commit is contained in:
commit
ac097bbe5c
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ source $current_dir/utils.sh
|
||||||
|
|
||||||
linux_acpi() {
|
linux_acpi() {
|
||||||
arg=$1
|
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
|
if [ ! -x "$(which acpi 2> /dev/null)" ];then
|
||||||
case "$arg" in
|
case "$arg" in
|
||||||
status)
|
status)
|
||||||
|
|
Loading…
Reference in a new issue