UPDATE: the power_supply device selection

This commit is contained in:
dev-onejun 2024-01-03 11:21:25 +09:00
parent 3f2466af44
commit a43fd55235

View file

@ -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)