FILESEXTRAPATHS:prepend := "${THISDIR}/systemd:" SRC_URI += "file://usb-gadget.network" 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 ${UNPACKDIR}/usb-gadget.network ${D}${prefix}/lib/systemd/network/ } pkg_postinst:${PN}:append () { # Mask network-online.target to prevent it from failing becasue we use connman. if [ -n "$D" ]; then OPTS="--root=$D" fi systemctl $OPTS mask systemd-networkd-wait-online.service } FILES:${PN} += " \ ${nonarch_base_libdir}/systemd/network \ "