summaryrefslogtreecommitdiff
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
parentddda601c81f8a091263393c71b324eee28e709a7 (diff)
fix apmwrapper to make suspend/resume also work on CXK
BKrev: 426aa348a49iwgXpP36A0c7zH6ENHw
-rw-r--r--packages/apmd/apmd-3.2.2/apmwrapper9
-rw-r--r--packages/apmd/apmd_3.2.2.bb20
2 files changed, 20 insertions, 9 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
+
diff --git a/packages/apmd/apmd_3.2.2.bb b/packages/apmd/apmd_3.2.2.bb
index 9efd794f82..7047ff96fe 100644
--- a/packages/apmd/apmd_3.2.2.bb
+++ b/packages/apmd/apmd_3.2.2.bb
@@ -1,15 +1,9 @@
-PR = "r2"
+DESCRIPTION = "Set of tools for managing notebook power consumption."
SECTION = "base"
PRIORITY = "required"
DEPENDS = "libtool-cross"
-DESCRIPTION = "Set of tools for managing notebook power consumption."
-LICENSE="GPL"
-
-PACKAGES =+ "libapm libapm-dev apm"
-
-FILES_libapm = "${libdir}/libapm.so.*"
-FILES_libapm-dev = "${libdir}/libapm.* ${includedir}"
-FILES_apm = "${bindir}/apm*"
+LICENSE = "GPL"
+PR = "r3"
SRC_URI = "${DEBIAN_MIRROR}/main/a/apmd/apmd_${PV}.orig.tar.gz; \
file://debian.patch;patch=1 \
@@ -63,3 +57,11 @@ do_install() {
cat ${WORKDIR}/init | sed -e 's,/usr/sbin,${sbindir},g; s,/etc,${sysconfdir},g;' > ${D}${sysconfdir}/init.d/apmd
chmod 755 ${D}${sysconfdir}/init.d/apmd
}
+
+PACKAGES =+ "libapm libapm-dev apm"
+
+FILES_libapm = "${libdir}/libapm.so.*"
+FILES_libapm-dev = "${libdir}/libapm.* ${includedir}"
+FILES_apm = "${bindir}/apm*"
+
+