Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PACKAGECONFIG_append = " networkd resolved"
- FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
- inherit systemd
- SRC_URI += "file://eth0.network \
- file://10-default.link \
- file://macaddrs.sh \
- file://macaddrs.service \
- file://gpio_pwr.sh \
- file://gpio_pwr.service "
- SYSTEMD_SERVICE_${PN} += "gpio-pwr.service"
- SYSTEMD_SERVICE_${PN} += "macaddrs.service"
- SYSTEMD_AUTO_ENABLE="enable"
- # changing default ntp configuration, google doesn't answer to ntp
- # https://bugs.freedesktop.org/show_bug.cgi?id=89676
- # EXTRA_OECONF += "--with-ntp-servers='pool.ntp.org 0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org' \
- # --with-dns-servers='8.8.8.8 8.8.4.4'"
- do_install_append() {
- install -d ${D}${systemd_unitdir}/network/
- install -m 0644 ${WORKDIR}/*.network ${D}${systemd_unitdir}/network/
- install -m 0644 ${WORKDIR}/*.link ${D}${systemd_unitdir}/network/
- install -d ${D}${bindir}
- install -m 0755 ${WORKDIR}/*.sh ${D}${bindir}
- install -d ${D}${systemd_unitdir}/system
- install -m 0644 ${WORKDIR}/*.service ${D}${systemd_unitdir}/system
- }
- # USERADD_PARAM_${PN} = "--system --home /dev/null systemd-journal-gateway"
- FILES_${PN} += "${systemd_unitdir}/network/* \
- ${bindir} \
- ${systemd_unitdir}/system/*"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement