From: Miklos Vajna Date: Tue, 14 Oct 2008 14:42:45 +0000 (+0200) Subject: Add Linux PPC support to the pre-auto-gc example hook X-Git-Tag: v1.6.1-rc1~145 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=84ed4c5d117d72f02cc918e413b9861a9d2846d7;p=git.git Add Linux PPC support to the pre-auto-gc example hook Signed-off-by: Miklos Vajna Signed-off-by: Junio C Hamano --- diff --git a/contrib/hooks/pre-auto-gc-battery b/contrib/hooks/pre-auto-gc-battery index b0a8caae9..1f914c94a 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 |