summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xhooks/pre-auto-gc2
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
30fi 30fi
31 31
32if test -x /sbin/on_ac_power && /sbin/on_ac_power 32if test -x /sbin/on_ac_power && (/sbin/on_ac_power;test $? -ne 1)
33then 33then
34 exit 0 34 exit 0
35elif test "$(cat /sys/class/power_supply/AC/online 2>/dev/null)" = 1 35elif test "$(cat /sys/class/power_supply/AC/online 2>/dev/null)" = 1