From: Ting Liu Date: Mon, 27 Feb 2012 10:40:53 +0000 (+0000) Subject: busybox: fix install error when CONFIG_INETD enabled X-Git-Tag: 2.1~534^2~525 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=224f831c9f696fff14a79b34a5de2ab3da9e842f;p=meta-freescale.git busybox: fix install error when CONFIG_INETD enabled To avoid the following error: | CONFIG_INETD=y | install: cannot stat `.../busybox-1.18.5-r2/inetd': No such file or directory | ERROR: Function 'do_install' failed Signed-off-by: Ting Liu --- diff --git a/meta-fsl-ppc/recipes-append/busybox/busybox-1.18.5/inetd b/meta-fsl-ppc/recipes-append/busybox/busybox-1.18.5/inetd new file mode 100644 index 00000000..cf50bcd5 --- /dev/null +++ b/meta-fsl-ppc/recipes-append/busybox/busybox-1.18.5/inetd @@ -0,0 +1,33 @@ +#!/bin/sh +# +# start/stop inetd super server. + +if ! [ -x /usr/sbin/inetd ]; then + exit 0 +fi + +case "$1" in + start) + echo -n "Starting internet superserver:" + echo -n " inetd" ; start-stop-daemon -S -x /usr/sbin/inetd > /dev/null + echo "." + ;; + stop) + echo -n "Stopping internet superserver:" + echo -n " inetd" ; start-stop-daemon -K -x /usr/sbin/inetd > /dev/null + echo "." + ;; + restart) + echo -n "Restarting internet superserver:" + echo -n " inetd " + killall -HUP inetd + echo "." + ;; + *) + echo "Usage: /etc/init.d/inetd {start|stop|restart}" + exit 1 + ;; +esac + +exit 0 + diff --git a/meta-fsl-ppc/recipes-append/busybox/busybox-1.18.5/inetd.conf b/meta-fsl-ppc/recipes-append/busybox/busybox-1.18.5/inetd.conf new file mode 100644 index 00000000..b02fe850 --- /dev/null +++ b/meta-fsl-ppc/recipes-append/busybox/busybox-1.18.5/inetd.conf @@ -0,0 +1,20 @@ +# /etc/inetd.conf: see inetd(8) for further informations. +# +# Internet server configuration database +# +# If you want to disable an entry so it isn't touched during +# package updates just comment it out with a single '#' character. +# +# +# +#:INTERNAL: Internal services +#echo stream tcp nowait root internal +#echo dgram udp wait root internal +#chargen stream tcp nowait root internal +#chargen dgram udp wait root internal +#discard stream tcp nowait root internal +#discard dgram udp wait root internal +#daytime stream tcp nowait root internal +#daytime dgram udp wait root internal +#time stream tcp nowait root internal +#time dgram udp wait root internal diff --git a/meta-fsl-ppc/recipes-append/busybox/busybox_1.18.5.bbappend b/meta-fsl-ppc/recipes-append/busybox/busybox_1.18.5.bbappend index b285c16c..cdf171b0 100644 --- a/meta-fsl-ppc/recipes-append/busybox/busybox_1.18.5.bbappend +++ b/meta-fsl-ppc/recipes-append/busybox/busybox_1.18.5.bbappend @@ -2,4 +2,6 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/busybox-1.18.5:" SRC_URI += "file://0001-libbb.h-do-not-use-homegrown-struct-sysinfo.patch \ file://0002-work-around-sysinfo.h-versus-linux-.h-problems.patch \ + file://inetd \ + file://inetd.conf \ "