summaryrefslogtreecommitdiff
path: root/packages/apmd/apmd-3.2.2/apmwrapper
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2005-04-23 19:34:32 +0000
committerMichael Lauer <mickey@vanille-media.de>2005-04-23 19:34:32 +0000
commit3e298e84a0ac02cb1b9a6fd4645292e790166905 (patch)
tree3394e87c8f5a213df017d9d347849aea8a149a30 /packages/apmd/apmd-3.2.2/apmwrapper
parentddda601c81f8a091263393c71b324eee28e709a7 (diff)
fix apmwrapper to make suspend/resume also work on CXK
BKrev: 426aa348a49iwgXpP36A0c7zH6ENHw
Diffstat (limited to 'packages/apmd/apmd-3.2.2/apmwrapper')
-rw-r--r--packages/apmd/apmd-3.2.2/apmwrapper9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/apmd/apmd-3.2.2/apmwrapper b/packages/apmd/apmd-3.2.2/apmwrapper
index e69de29bb2..3bc9bece3d 100644
--- a/packages/apmd/apmd-3.2.2/apmwrapper
+++ b/packages/apmd/apmd-3.2.2/apmwrapper
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if ( cat /proc/cpuinfo|grep -i hardware|grep -i SHARP ) && \
+ [ ".$@" = ".-s" -o ".$@" = ".--suspend" ]; then
+ killall -USR1 apmd || /usr/bin/apm.orig -s
+else
+ /usr/bin/apm.orig "$@"
+fi
+