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