3 SRC_URI += "file://busybox-telnetd.xinetd.in \
4 file://busybox-telnetd@.service \
5 file://busybox-telnetd.socket \
6 file://0001-ifupdown-support-post-up-pre-down-hooks.patch \
7 file://0002-ifupdown-code-shrink.patch \
8 file://0003-ifupdown-remove-interface-from-state_list-if-iface_u.patch \
9 file://0004-ifupdown-support-metric-for-static-default-gw.patch \
10 file://0005-ifupdown-improve-compatibility-with-Debian.patch \
11 file://0006-get_linux_version_code-don-t-fail-on-3.0-foo.patch \
12 file://0007-ifplugd-move-read_pid-to-libbb-pidfile.c-and-rename-.patch \
13 file://0008-ifupdown-dhcp_down-wait-until-udhcpc-has-been-killed.patch \
14 file://0009-udhcpc-calculate-broadcast-address-if-not-given-by-s.patch"
16 inherit systemd xinetd
19 if grep -q "CONFIG_CRONTAB=y" ${WORKDIR}/defconfig; then
20 install -d ${D}${sysconfdir}/cron/crontabs
22 install -d ${D}${systemd_unitdir}/system
23 ln -sf /dev/null ${D}${systemd_unitdir}/system/busybox-telnetd.service
26 FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"
28 SYSTEMD_PACKAGES += "${PN}-systemd"
29 SYSTEMD_SERVICE_${PN}-systemd = "busybox-telnetd.socket"
31 XINETD_PACKAGES = "${PN}-xinetd"
32 XINETD_SERVICE_${PN}-xinetd = "busybox-telnetd"