diff options
Diffstat (limited to 'meta')
-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" |