diff options
author | Yevhen Kyriukha <kirgene@gmail.com> | 2013-08-13 14:26:46 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-22 18:30:04 +0100 |
commit | 2d4b261dd3995f9942f5741e0908891a997b5263 (patch) | |
tree | a7238f37c5d63ab1e21c0daa2d8d6f744a94007e /meta/recipes-connectivity/connman/connman.inc | |
parent | 557d1c74bf7994f8cce1d9ae92dbb98098f03f93 (diff) | |
download | poky-2d4b261dd3995f9942f5741e0908891a997b5263.tar.gz |
connman: fix systemd support for connman-* packages.
This patch fixes systemd's postinst/postrm script generation.
(From OE-Core rev: 657c7724966fdbd1236cb003419f01c885bcd570)
Signed-off-by: Yevhen Kyriukha <kirgene@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/connman/connman.inc')
-rw-r--r-- | meta/recipes-connectivity/connman/connman.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/connman/connman.inc b/meta/recipes-connectivity/connman/connman.inc index 6b5ea0b17b..37ce3ec7bb 100644 --- a/meta/recipes-connectivity/connman/connman.inc +++ b/meta/recipes-connectivity/connman/connman.inc | |||
@@ -56,6 +56,14 @@ PACKAGECONFIG[wispr] = "--enable-wispr,--disable-wispr,gnutls," | |||
56 | INITSCRIPT_NAME = "connman" | 56 | INITSCRIPT_NAME = "connman" |
57 | INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ." | 57 | INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ." |
58 | 58 | ||
59 | python __anonymous () { | ||
60 | systemd_packages = "${PN}" | ||
61 | pkgconfig = d.getVar('PACKAGECONFIG', True) | ||
62 | if ('openvpn' or 'vpnc' or 'l2tp' or 'pptp') in pkgconfig.split(): | ||
63 | systemd_packages += " ${PN}-vpn" | ||
64 | d.setVar('SYSTEMD_PACKAGES', systemd_packages) | ||
65 | } | ||
66 | |||
59 | SYSTEMD_SERVICE_${PN} = "connman.service" | 67 | SYSTEMD_SERVICE_${PN} = "connman.service" |
60 | SYSTEMD_SERVICE_${PN}-vpn = "connman-vpn.service" | 68 | SYSTEMD_SERVICE_${PN}-vpn = "connman-vpn.service" |
61 | SYSTEMD_WIRED_SETUP = "ExecStartPre=-${libdir}/connman/wired-setup" | 69 | SYSTEMD_WIRED_SETUP = "ExecStartPre=-${libdir}/connman/wired-setup" |