summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/connman/connman.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/connman/connman.inc')
-rw-r--r--meta/recipes-connectivity/connman/connman.inc15
1 files changed, 14 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/connman/connman.inc b/meta/recipes-connectivity/connman/connman.inc
index cc2d46935d..ab18f2fe01 100644
--- a/meta/recipes-connectivity/connman/connman.inc
+++ b/meta/recipes-connectivity/connman/connman.inc
@@ -13,7 +13,7 @@ LICENSE = "GPLv2"
13LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \ 13LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \
14 file://src/main.c;beginline=1;endline=20;md5=486a279a6ab0c8d152bcda3a5b5edc36" 14 file://src/main.c;beginline=1;endline=20;md5=486a279a6ab0c8d152bcda3a5b5edc36"
15 15
16inherit autotools pkgconfig systemd update-rc.d bluetooth 16inherit autotools pkgconfig systemd update-rc.d bluetooth update-alternatives
17 17
18DEPENDS = "dbus glib-2.0 ppp readline" 18DEPENDS = "dbus glib-2.0 ppp readline"
19 19
@@ -69,6 +69,11 @@ SYSTEMD_SERVICE_${PN} = "connman.service"
69SYSTEMD_SERVICE_${PN}-vpn = "connman-vpn.service" 69SYSTEMD_SERVICE_${PN}-vpn = "connman-vpn.service"
70SYSTEMD_SERVICE_${PN}-wait-online = "connman-wait-online.service" 70SYSTEMD_SERVICE_${PN}-wait-online = "connman-wait-online.service"
71 71
72ALTERNATIVE_PRIORITY = "100"
73ALTERNATIVE_${PN} ="resolv-conf"
74ALTERNATIVE_TARGET[resolv-conf] = "${sysconfdir}/resolv-conf.connman"
75ALTERNATIVE_LINK_NAME[resolv-conf] = "${sysconfdir}/resolv.conf"
76
72do_install_append() { 77do_install_append() {
73 if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then 78 if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then
74 install -d ${D}${sysconfdir}/init.d 79 install -d ${D}${sysconfdir}/init.d
@@ -89,6 +94,14 @@ do_install_append() {
89 # Automake 1.12 won't install empty directories, but we need the 94 # Automake 1.12 won't install empty directories, but we need the
90 # plugins directory to be present for ownership 95 # plugins directory to be present for ownership
91 mkdir -p ${D}${libdir}/connman/plugins 96 mkdir -p ${D}${libdir}/connman/plugins
97
98 # For read-only filesystem, do not create links during bootup
99 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
100 if ${@bb.utils.contains('IMAGE_FEATURES','read-only-rootfs','true','false',d)}; then
101 echo "d /var/run/connman - - - -" > ${D}${sysconfdir}/tmpfiles.d/connman_resolvconf.conf
102 fi
103 ln -sf ../run/connman/resolv.conf ${D}${sysconfdir}/resolv-conf.connman
104 fi
92} 105}
93 106
94# These used to be plugins, but now they are core 107# These used to be plugins, but now they are core