[oe-commits] org.oe.dev apm: turn off wifi cards before suspend so they are fully reloaded upon resume. closes 3664.
Laibsch commit
openembedded-commits at lists.openembedded.org
Wed Jan 16 13:03:20 UTC 2008
apm: turn off wifi cards before suspend so they are fully reloaded upon resume. closes 3664.
Author: Laibsch at openembedded.org
Branch: org.openembedded.dev
Revision: 1b0acc215822890043b4d815ac222a6c2e77a15b
ViewMTN: http://monotone.openembedded.org/revision/info/1b0acc215822890043b4d815ac222a6c2e77a15b
Files:
1
packages/apmd/apmd-3.2.2/90-wifi-off
packages/apmd/apmd_3.2.2.bb
Diffs:
#
# mt diff -rad00788d9e2f2f3b509d80f534463b293eecccb5 -r1b0acc215822890043b4d815ac222a6c2e77a15b
#
#
#
# add_file "packages/apmd/apmd-3.2.2/90-wifi-off"
# content [dd2b60322fc6d9136495d7c41f7c1f9e73ed8937]
#
# patch "packages/apmd/apmd_3.2.2.bb"
# from [468e386d67d32dcf673ffd462940acdf206daeee]
# to [7e1be5e159f4f8ae062efeda347fda7056e83fc8]
#
============================================================
--- packages/apmd/apmd-3.2.2/90-wifi-off dd2b60322fc6d9136495d7c41f7c1f9e73ed8937
+++ packages/apmd/apmd-3.2.2/90-wifi-off dd2b60322fc6d9136495d7c41f7c1f9e73ed8937
@@ -0,0 +1,12 @@
+#!/bin/sh
+#Author: Rolf Leggewie
+#
+# turn off wifi cards before suspend so they are fully reloaded upon resume
+
+wifislot = `pccardctl ls|egrep '(hostap|orinoco)'|cut -f 2 -d " "`
+if test $wifislot
+then
+ for slot in $wifislot; do
+ pccardctl eject $wifislot
+ done
+fi
============================================================
--- packages/apmd/apmd_3.2.2.bb 468e386d67d32dcf673ffd462940acdf206daeee
+++ packages/apmd/apmd_3.2.2.bb 7e1be5e159f4f8ae062efeda347fda7056e83fc8
@@ -1,9 +1,9 @@ LICENSE = "GPL"
DESCRIPTION = "Set of tools for managing notebook power consumption."
SECTION = "base"
PRIORITY = "required"
DEPENDS = "libtool-cross"
LICENSE = "GPL"
-PR = "r8"
+PR = "r9"
SRC_URI = "${DEBIAN_MIRROR}/main/a/apmd/apmd_${PV}.orig.tar.gz \
file://debian.patch;patch=1 \
@@ -12,6 +12,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/a/apmd/
file://unlinux.patch;patch=1 \
file://init \
file://default \
+ file://90-wifi-off \
file://apmd_proxy \
file://apmd_proxy.conf"
@@ -49,6 +50,7 @@ do_install() {
install -m 4755 ${S}/.libs/apm ${D}${bindir}/apm
install -m 0755 ${S}/.libs/apmd ${D}${sbindir}/apmd
+ install -m 0755 ${WORKDIR}/90-wifi-off ${D}${sysconfdir}/apm/suspend.d
install -m 0755 ${WORKDIR}/apmd_proxy ${D}${sysconfdir}/apm/
install -m 0644 ${WORKDIR}/apmd_proxy.conf ${D}${datadir}/apmd/
install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/apmd
More information about the Openembedded-commits
mailing list