summaryrefslogtreecommitdiff
path: root/apmd/apmd-3.2.2/apmwrapper
diff options
context:
space:
mode:
Diffstat (limited to 'apmd/apmd-3.2.2/apmwrapper')
-rw-r--r--apmd/apmd-3.2.2/apmwrapper9
1 files changed, 9 insertions, 0 deletions
diff --git a/apmd/apmd-3.2.2/apmwrapper b/apmd/apmd-3.2.2/apmwrapper
index e69de29bb2..64e02d408b 100644
--- a/apmd/apmd-3.2.2/apmwrapper
+++ b/apmd/apmd-3.2.2/apmwrapper
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if ( uname -r | grep -q embedix ) && \
+ [ ".$@" = ".-s" -o ".$@" = ".--suspend" ]; then
+ killall -USR1 apmd || /usr/bin/apm.orig -s
+else
+ /usr/bin/apm.orig "$@"
+fi
+