diff options
Diffstat (limited to 'src/usr/local')
-rwxr-xr-x | src/usr/local/bin/bat-led-set | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/bin/bat-led-set b/src/usr/local/bin/bat-led-set index 22a2b6a..e88fec4 100755 --- a/src/usr/local/bin/bat-led-set +++ b/src/usr/local/bin/bat-led-set @@ -1,6 +1,6 @@ #!/bin/sh -if sh -c "cat /sys/class/power_supply/BAT*/capacity | xargs -n1 test 5 -ge"; then +if sh -c "cat /sys/class/power_supply/BAT*/capacity | xargs -n1 test 5 -ge && test $POWER_SUPPLY_STATUS = Discharging"; then export OUT=1 else export OUT=0 |