busybox: ignore fstab option "nofail"
[opendreambox.git] / meta-opendreambox / recipes-core / busybox / busybox_1.20.2.bbappend
1 PRINC := "${@int(PRINC) + 1}"
2
3 SRC_URI += "file://busybox-telnetd.xinetd.in \
4             file://busybox-telnetd@.service \
5             file://busybox-telnetd.socket \
6             file://0001-mount-set-up-RO-loop-device-if-mount-o-ro.-Closes-47.patch \
7             file://0002-mount-undo-recent-breakage-when-mount-flags-were-mad.patch \
8             file://0003-mount-do-not-pass-comment-ANYTHING-option-to-kernel..patch \
9             file://0004-mount-support-strictatime-option.-Closes-5240.patch \
10             file://0005-ifplugd-move-read_pid-to-libbb-pidfile.c-and-rename-.patch \
11             file://0006-ifupdown-dhcp_down-wait-until-udhcpc-has-been-killed.patch \
12             file://0007-udhcpc-calculate-broadcast-address-if-not-given-by-s.patch \
13             file://0008-udhcpc-obtain-hostname-from-OS-by-default.patch \
14             file://0009-mount-don-t-pass-option-nofail-to-the-kernel.patch"
15
16 inherit systemd xinetd
17
18 do_install_append() {
19         if grep -q "CONFIG_CRONTAB=y" ${WORKDIR}/defconfig; then
20                 install -d ${D}${sysconfdir}/cron/crontabs
21         fi
22         if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
23                 install -d ${D}${systemd_unitdir}/system
24                 ln -sf /dev/null ${D}${systemd_unitdir}/system/busybox-telnetd.service
25                 install -m644 ${WORKDIR}/busybox-telnetd@.service ${D}${systemd_unitdir}/system
26                 install -m644 ${WORKDIR}/busybox-telnetd.socket ${D}${systemd_unitdir}/system
27         fi
28 }
29
30 FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"
31
32 SYSTEMD_PACKAGES += "${PN}"
33 SYSTEMD_SERVICE_${PN} = "busybox-telnetd.socket"
34 XINETD_SERVICE_${PN} = "busybox-telnetd"