diff --git a/meta-dts-distro/recipes-core/systemd/files/usb.network b/meta-dts-distro/recipes-core/systemd/files/usb.network new file mode 100644 index 0000000..0d7a120 --- /dev/null +++ b/meta-dts-distro/recipes-core/systemd/files/usb.network @@ -0,0 +1,15 @@ +# modified 80-wired.network +[Match] +Type=ether +Name=!veth* +Driver=rndis_host +KernelCommandLine=!nfsroot +KernelCommandLine=!ip + +[Network] +DHCP=yes + +[DHCP] +UseMTU=yes +RouteMetric=30 +ClientIdentifier=mac diff --git a/meta-dts-distro/recipes-core/systemd/systemd-conf_%.bbappend b/meta-dts-distro/recipes-core/systemd/systemd-conf_%.bbappend new file mode 100644 index 0000000..d8301e9 --- /dev/null +++ b/meta-dts-distro/recipes-core/systemd/systemd-conf_%.bbappend @@ -0,0 +1,9 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/files:" + +SRC_URI:append = " file://usb.network" + +do_install:append() { + install -D -m0644 ${WORKDIR}/usb.network ${D}${sysconfdir}/systemd/network/50-usb.network +} + +FILES:${PN}:append = " ${sysconfdir}/systemd/network/50-usb.network"