SRC_URI += "file://busybox-telnetd.xinetd.in \ file://busybox-telnetd@.service \ file://busybox-telnetd.socket \ file://0001-ifplugd-move-read_pid-to-libbb-pidfile.c-and-rename-.patch \ file://0002-ifupdown-dhcp_down-wait-until-udhcpc-has-been-killed.patch \ file://0003-udhcpc-calculate-broadcast-address-if-not-given-by-s.patch \ file://0004-udhcpc-obtain-hostname-from-OS-by-default.patch \ file://0005-mount-don-t-pass-option-nofail-to-the-kernel.patch \ file://0006-mount-don-t-pass-option-auto-to-kernel.patch \ file://0007-speed_table-remove-hack-which-made-large-baud-rates-.patch \ file://0008-speed_table-add-baud-rates-up-to-4-MBit-s-as-defined.patch \ file://0009-dd-behave-like-GNU-coreutils-with-conv-fsync.patch \ file://opendreambox.cfg" inherit xinetd do_install_append() { if grep -q "CONFIG_CRONTAB=y" ${B}/.config; then install -d ${D}${sysconfdir}/cron/crontabs fi if grep -q "CONFIG_TELNETD=y" ${B}/.config; then install -d ${D}${systemd_unitdir}/system ln -sf /dev/null ${D}${systemd_unitdir}/system/busybox-telnetd.service install -m644 ${WORKDIR}/busybox-telnetd@.service ${D}${systemd_unitdir}/system install -m644 ${WORKDIR}/busybox-telnetd.socket ${D}${systemd_unitdir}/system fi } FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" SYSTEMD_PACKAGES += "${PN}" SYSTEMD_SERVICE_${PN} = "busybox-telnetd.socket" XINETD_SERVICE_${PN} = "busybox-telnetd"