From e41bbda4ff0911272a49171c8b63a888aa34f55e Mon Sep 17 00:00:00 2001 From: Ting Liu Date: Mon, 27 Feb 2012 10:40:53 +0000 Subject: 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 --- recipes-append/busybox/busybox-1.18.5/inetd | 33 ++++++++++++++++++++++++ recipes-append/busybox/busybox-1.18.5/inetd.conf | 20 ++++++++++++++ recipes-append/busybox/busybox_1.18.5.bbappend | 2 ++ 3 files changed, 55 insertions(+) create mode 100644 recipes-append/busybox/busybox-1.18.5/inetd create mode 100644 recipes-append/busybox/busybox-1.18.5/inetd.conf diff --git a/recipes-append/busybox/busybox-1.18.5/inetd b/recipes-append/busybox/busybox-1.18.5/inetd new file mode 100644 index 0000000..cf50bcd --- /dev/null +++ b/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/recipes-append/busybox/busybox-1.18.5/inetd.conf b/recipes-append/busybox/busybox-1.18.5/inetd.conf new file mode 100644 index 0000000..b02fe85 --- /dev/null +++ b/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/recipes-append/busybox/busybox_1.18.5.bbappend b/recipes-append/busybox/busybox_1.18.5.bbappend index b285c16..cdf171b 100644 --- a/recipes-append/busybox/busybox_1.18.5.bbappend +++ b/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 \ " -- cgit v1.2.3-54-g00ecf