git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Miklos Vajna <vmiklos@frugalware.org>
Date
Oct 14, 2008, 14:42 UTC
Message-ID
<20081014144245.GX536@genesis.frugalware.org>
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
---
 contrib/hooks/pre-auto-gc-battery |    3 +++
 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
-- 
1.6.0.2
Message 1 of 1 in “Add Linux PPC support to the pre-auto-gc example hook”
  1. Add Linux PPC support to the pre-auto-gc example hookMiklos Vajna, Oct 14, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.