blob: b62f2ce112cda9f653783826d144b811146ba5c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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 \
"
|