Skip to content

Commit 84ed4c5

Browse files
Miklos Vajnagitster
authored andcommitted
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>
1 parent aef405d commit 84ed4c5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contrib/hooks/pre-auto-gc-battery

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ elif grep -q 'on-line' /proc/acpi/ac_adapter/AC/state 2>/dev/null
2828
then
2929
exit 0
3030
elif grep -q '0x01$' /proc/apm 2>/dev/null
31+
then
32+
exit 0
33+
elif grep -q "AC Power \+: 1" /proc/pmu/info 2>/dev/null
3134
then
3235
exit 0
3336
elif test -x /usr/bin/pmset && /usr/bin/pmset -g batt |

0 commit comments

Comments
 (0)