diff options
| -rw-r--r-- | meta-networking/recipes-connectivity/wowlan-udev/files/99-wowlan.rules | 4 | ||||
| -rw-r--r-- | meta-networking/recipes-connectivity/wowlan-udev/wowlan-udev.bb | 14 |
2 files changed, 18 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/wowlan-udev/files/99-wowlan.rules b/meta-networking/recipes-connectivity/wowlan-udev/files/99-wowlan.rules new file mode 100644 index 0000000000..ba41eef896 --- /dev/null +++ b/meta-networking/recipes-connectivity/wowlan-udev/files/99-wowlan.rules | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | # Enable WoWLAN when Wi-Fi PHY is registered | ||
| 2 | ACTION=="add", SUBSYSTEM=="ieee80211", KERNEL=="phy*", \ | ||
| 3 | RUN+="/usr/sbin/iw %k wowlan enable magic-packet" | ||
| 4 | |||
diff --git a/meta-networking/recipes-connectivity/wowlan-udev/wowlan-udev.bb b/meta-networking/recipes-connectivity/wowlan-udev/wowlan-udev.bb new file mode 100644 index 0000000000..857bbc3f95 --- /dev/null +++ b/meta-networking/recipes-connectivity/wowlan-udev/wowlan-udev.bb | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | SUMMARY = "Enable WoWLAN via udev on Wi-Fi PHY registration" | ||
| 2 | LICENSE = "MIT" | ||
| 3 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
| 4 | |||
| 5 | SRC_URI = "file://99-wowlan.rules" | ||
| 6 | |||
| 7 | do_install() { | ||
| 8 | install -d ${D}${sysconfdir}/udev/rules.d | ||
| 9 | install -m 0644 ${UNPACKDIR}/99-wowlan.rules \ | ||
| 10 | ${D}${sysconfdir}/udev/rules.d/ | ||
| 11 | } | ||
| 12 | |||
| 13 | INHIBIT_DEFAULT_DEPS = "1" | ||
| 14 | RDEPENDS:${PN} = "iw udev" | ||
