Advertisement
Guest User

Untitled

a guest
Mar 21st, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. PACKAGECONFIG_append = " networkd resolved"
  2. FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
  3.  
  4. inherit systemd
  5.  
  6. SRC_URI += "file://eth0.network \
  7. file://10-default.link \
  8. file://macaddrs.sh \
  9. file://macaddrs.service \
  10. file://gpio_pwr.sh \
  11. file://gpio_pwr.service "
  12.  
  13. SYSTEMD_SERVICE_${PN} += "gpio-pwr.service"
  14. SYSTEMD_SERVICE_${PN} += "macaddrs.service"
  15.  
  16. SYSTEMD_AUTO_ENABLE="enable"
  17.  
  18. # changing default ntp configuration, google doesn't answer to ntp
  19. # https://bugs.freedesktop.org/show_bug.cgi?id=89676
  20. # EXTRA_OECONF += "--with-ntp-servers='pool.ntp.org 0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org' \
  21. # --with-dns-servers='8.8.8.8 8.8.4.4'"
  22.  
  23. do_install_append() {
  24. install -d ${D}${systemd_unitdir}/network/
  25. install -m 0644 ${WORKDIR}/*.network ${D}${systemd_unitdir}/network/
  26. install -m 0644 ${WORKDIR}/*.link ${D}${systemd_unitdir}/network/
  27. install -d ${D}${bindir}
  28. install -m 0755 ${WORKDIR}/*.sh ${D}${bindir}
  29. install -d ${D}${systemd_unitdir}/system
  30. install -m 0644 ${WORKDIR}/*.service ${D}${systemd_unitdir}/system
  31. }
  32.  
  33. # USERADD_PARAM_${PN} = "--system --home /dev/null systemd-journal-gateway"
  34.  
  35. FILES_${PN} += "${systemd_unitdir}/network/* \
  36. ${bindir} \
  37. ${systemd_unitdir}/system/*"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement