From 84ed4c5d117d72f02cc918e413b9861a9d2846d7 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 14 Oct 2008 16:42:45 +0200 Subject: Add Linux PPC support to the pre-auto-gc example hook Signed-off-by: Miklos Vajna Signed-off-by: Junio C Hamano --- contrib/hooks/pre-auto-gc-battery | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/hooks/pre-auto-gc-battery b/contrib/hooks/pre-auto-gc-battery index b0a8caae9e..1f914c94aa 100644 --- a/contrib/hooks/pre-auto-gc-battery +++ b/contrib/hooks/pre-auto-gc-battery @@ -28,6 +28,9 @@ elif grep -q 'on-line' /proc/acpi/ac_adapter/AC/state 2>/dev/null then exit 0 elif grep -q '0x01$' /proc/apm 2>/dev/null +then + exit 0 +elif grep -q "AC Power \+: 1" /proc/pmu/info 2>/dev/null then exit 0 elif test -x /usr/bin/pmset && /usr/bin/pmset -g batt | -- cgit v1.2.3