fixed get_battery for device names starting with CMB

This commit is contained in:
Sebastian Elisa Pfeifer 2017-08-25 12:16:58 +02:00
parent 2dd23807a7
commit 2cfdfd34e4
No known key found for this signature in database
GPG Key ID: 923719A753677B95
1 changed files with 1 additions and 1 deletions

View File

@ -2077,7 +2077,7 @@ get_battery() {
"Linux") "Linux")
# We use 'prin' here so that we can do multi battery support # We use 'prin' here so that we can do multi battery support
# with a single battery per line. # with a single battery per line.
for bat in "/sys/class/power_supply/"{BAT,axp288_fuel_gauge}*; do for bat in "/sys/class/power_supply/"{BAT,axp288_fuel_gauge,CMB}*; do
capacity="$(< "${bat}/capacity")" capacity="$(< "${bat}/capacity")"
status="$(< "${bat}/status")" status="$(< "${bat}/status")"