Patchwork meta-systemd: restore wpa-supplicant bbappend

login
register
mail settings
Submitter Martin Jansa
Date March 4, 2013, 1:29 p.m.
Message ID <1362403779-1653-1-git-send-email-Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/45479/
State Accepted
Commit 8c8a5765650e08a74cbe238a3571592d9bc2c2a3
Headers show

Comments

Martin Jansa - March 4, 2013, 1:29 p.m.
* systemd support in oe-core does not work for everybody
---
 .../wpa-supplicant/wpa-supplicant_2.0.bbappend            | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta-systemd/oe-core/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.0.bbappend

Patch

diff --git a/meta-systemd/oe-core/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.0.bbappend b/meta-systemd/oe-core/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.0.bbappend
new file mode 100644
index 0000000..609a1f3
--- /dev/null
+++ b/meta-systemd/oe-core/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.0.bbappend
@@ -0,0 +1,15 @@ 
+PRINC := "${@int(PRINC) + 2}"
+
+inherit systemd
+
+SYSTEMD_PACKAGES = "${PN}-systemd"
+SYSTEMD_SERVICE = "wpa_supplicant.service"
+SYSTEMD_AUTO_ENABLE = "disable"
+
+do_install_append () {
+    install -d ${D}${systemd_unitdir}/system
+    install -m 644 ${S}/systemd/*.service ${D}${systemd_unitdir}/system
+}
+
+# systemd.bbclass does not catch all multiple-instance-service-files
+FILES_${PN}-systemd += "${systemd_unitdir}/system/"