diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2015-04-29 18:41:01 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2015-05-12 10:06:07 +0200 |
commit | e6f098011227ae0634c800b69767e8c656fc36a3 (patch) | |
tree | dbb13162099a672cb1ba92a710fe77f02724175a /recipes-core | |
parent | 3cf2edb10f5e8ac60db7ca2e71d1e754a177d08c (diff) |
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.
Diffstat (limited to 'recipes-core')
-rw-r--r-- | recipes-core/systemd/systemd/rndis.network | 8 | ||||
-rw-r--r-- | recipes-core/systemd/systemd_%.bbappend | 11 |
2 files changed, 19 insertions, 0 deletions
diff --git a/recipes-core/systemd/systemd/rndis.network b/recipes-core/systemd/systemd/rndis.network new file mode 100644 index 0000000..e4ecbab --- /dev/null +++ b/recipes-core/systemd/systemd/rndis.network @@ -0,0 +1,8 @@ +[Match] +# We use type since device name depends on Kernel version +# udevadm info --query=property /sys/class/net/usb0 +Type=gadget + +[Network] +Address=192.168.11.1/24 +DHCPServer=yes 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 \ +" |