Skip to contentSkip to conversation

Add Linux PPC support to the pre-auto-gc example hook

PATCH New Miklos Vajna 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add Linux PPC support to the pre-auto-gc example hook

---
 contrib/hooks/pre-auto-gc-battery |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
contrib/hooks/pre-auto-gc-battery +3 -0
index b0a8caa..1f914c9 100644
@@ -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
Signature · 1 line
1.6.0.2