summaryrefslogtreecommitdiff
path: root/packages/apmd/apmd-3.2.2
diff options
context:
space:
mode:
Diffstat (limited to 'packages/apmd/apmd-3.2.2')
-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
+