summaryrefslogtreecommitdiff
path: root/contrib/hooks
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2008-10-14 14:42:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-10-14 23:50:09 (GMT)
commit84ed4c5d117d72f02cc918e413b9861a9d2846d7 (patch)
tree858fcb96c83532e82e6cf1ace93e6fe1c05f5970 /contrib/hooks
parentaef405dd5021f674f86b66cadfe4442b5f79cbfc (diff)
downloadgit-84ed4c5d117d72f02cc918e413b9861a9d2846d7.zip
git-84ed4c5d117d72f02cc918e413b9861a9d2846d7.tar.gz
git-84ed4c5d117d72f02cc918e413b9861a9d2846d7.tar.bz2
Add Linux PPC support to the pre-auto-gc example hook
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/hooks')
-rw-r--r--contrib/hooks/pre-auto-gc-battery3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/hooks/pre-auto-gc-battery b/contrib/hooks/pre-auto-gc-battery
index b0a8caa..1f914c9 100644
--- a/contrib/hooks/pre-auto-gc-battery
+++ b/contrib/hooks/pre-auto-gc-battery
@@ -30,6 +30,9 @@ then
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 |
grep -q "Currently drawing from 'AC Power'"
then