realKarthikNair/EPP-systemd

Do not hardcode "BAT1"

Closed this issue · 1 comments

BATTERY_STATUS=$(cat /sys/class/power_supply/BAT1/status)
BATTERY_CAPACITY=$(cat /sys/class/power_supply/BAT1/capacity)

Some systems have it BAT0, BAT2 and so on. I will fix it.