diff options
-rwxr-xr-x | hooks/pre-auto-gc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/pre-auto-gc b/hooks/pre-auto-gc index c4107f51..ec29be43 100755 --- a/hooks/pre-auto-gc +++ b/hooks/pre-auto-gc | |||
@@ -29,7 +29,7 @@ then | |||
29 | exit 0 | 29 | exit 0 |
30 | fi | 30 | fi |
31 | 31 | ||
32 | if test -x /sbin/on_ac_power && /sbin/on_ac_power | 32 | if test -x /sbin/on_ac_power && (/sbin/on_ac_power;test $? -ne 1) |
33 | then | 33 | then |
34 | exit 0 | 34 | exit 0 |
35 | elif test "$(cat /sys/class/power_supply/AC/online 2>/dev/null)" = 1 | 35 | elif test "$(cat /sys/class/power_supply/AC/online 2>/dev/null)" = 1 |