summaryrefslogtreecommitdiffstats
path: root/recipes-connectivity
diff options
context:
space:
mode:
authorLaurent Bonnans <laurent.bonnans@here.com>2019-03-06 12:43:33 +0100
committerPatrick Vacek <patrickvacek@gmail.com>2019-04-26 16:00:51 +0200
commit578a50086b99f8dfd3093094d216e58e60d7d1f1 (patch)
treee3c19ca999dd44d31286401de7e0c6dadcd9b463 /recipes-connectivity
parent65e82c7b0cbcaf543c380082fcc2d172b7d0fb34 (diff)
downloadmeta-updater-578a50086b99f8dfd3093094d216e58e60d7d1f1.tar.gz
Replace connman with systemd-networkd on raspberrypi
Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
Diffstat (limited to 'recipes-connectivity')
-rw-r--r--recipes-connectivity/networkd-dhcp-conf/files/20-wired-dhcp.network2
-rw-r--r--recipes-connectivity/networkd-dhcp-conf/networkd-dhcp-conf.bb3
2 files changed, 4 insertions, 1 deletions
diff --git a/recipes-connectivity/networkd-dhcp-conf/files/20-wired-dhcp.network b/recipes-connectivity/networkd-dhcp-conf/files/20-wired-dhcp.network
index aec1849..edb3678 100644
--- a/recipes-connectivity/networkd-dhcp-conf/files/20-wired-dhcp.network
+++ b/recipes-connectivity/networkd-dhcp-conf/files/20-wired-dhcp.network
@@ -1,5 +1,5 @@
1[Match] 1[Match]
2Name=en* 2@MATCH_DIRECTIVE@
3 3
4[Network] 4[Network]
5DHCP=yes 5DHCP=yes
diff --git a/recipes-connectivity/networkd-dhcp-conf/networkd-dhcp-conf.bb b/recipes-connectivity/networkd-dhcp-conf/networkd-dhcp-conf.bb
index 39500c7..1a515a2 100644
--- a/recipes-connectivity/networkd-dhcp-conf/networkd-dhcp-conf.bb
+++ b/recipes-connectivity/networkd-dhcp-conf/networkd-dhcp-conf.bb
@@ -19,7 +19,10 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
19 19
20FILES_${PN} = "${systemd_unitdir}/network/*" 20FILES_${PN} = "${systemd_unitdir}/network/*"
21 21
22DEV_MATCH_DIRECTIVE ?= "Name=en*"
23
22do_install() { 24do_install() {
23 install -d ${D}/${systemd_unitdir}/network 25 install -d ${D}/${systemd_unitdir}/network
24 install -m 0644 ${WORKDIR}/20-wired-dhcp.network ${D}/${systemd_unitdir}/network 26 install -m 0644 ${WORKDIR}/20-wired-dhcp.network ${D}/${systemd_unitdir}/network
27 sed -i -e 's|@MATCH_DIRECTIVE@|${DEV_MATCH_DIRECTIVE}|g' ${D}${systemd_unitdir}/network/20-wired-dhcp.network
25} 28}