From 18df6079ce7362b95b7c6ad68a0c30777aa521b4 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 29 Apr 2015 18:41:01 +0200 Subject: systemd: add networkd for RNDIS configuration Since Connman is better suited for more advanced Wireless solutions, we keep Connman for the main network configuration manager. However, for the simple RNDIS debug/test configuration, Connman is not well suited since Connman tries to maintain one connection only at any given time. This change enables networkd and adds a simple standard configuration for USB/RNDIS network devices. --- recipes-core/systemd/systemd_%.bbappend | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'recipes-core/systemd/systemd_%.bbappend') diff --git a/recipes-core/systemd/systemd_%.bbappend b/recipes-core/systemd/systemd_%.bbappend index b24e14c..df69043 100644 --- a/recipes-core/systemd/systemd_%.bbappend +++ b/recipes-core/systemd/systemd_%.bbappend @@ -2,6 +2,17 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/systemd:" SRC_URI += " \ file://networkd_dont_stop_the_dhcp_server.patch \ + file://rndis.network \ " PACKAGECONFIG_append = " networkd" + +do_install_append() { + # The network files need to be in /usr/lib/systemd, not ${systemd_unitdir}... + install -d ${D}${prefix}/lib/systemd/network/ + install -m 0644 ${WORKDIR}/rndis.network ${D}${prefix}/lib/systemd/network/ +} + +FILES_${PN} += " \ + ${nonarch_base_libdir}/systemd/network \ +" -- cgit v1.2.3