From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from arroyo.ext.ti.com ([192.94.94.40]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1Sussf-000098-Ue for openembedded-core@lists.openembedded.org; Sat, 28 Jul 2012 00:19:34 +0200 Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id q6RM80sL001460 for ; Fri, 27 Jul 2012 17:08:00 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id q6RM80pX016623 for ; Fri, 27 Jul 2012 17:08:00 -0500 Received: from dlelxv22.itg.ti.com (172.17.1.197) by dfle72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.1.323.3; Fri, 27 Jul 2012 17:08:00 -0500 Received: from sdit-build02.dal.design.ti.com (sdit-build02.dal.design.ti.com [10.247.66.5]) by dlelxv22.itg.ti.com (8.13.8/8.13.8) with ESMTP id q6RM805c020587; Fri, 27 Jul 2012 17:08:00 -0500 Received: from a0273011 by sdit-build02.dal.design.ti.com with local (Exim 4.71) (envelope-from ) id 1Susjx-0003y9-CF; Fri, 27 Jul 2012 17:10:33 -0500 From: Franklin S Cooper Jr To: Date: Fri, 27 Jul 2012 17:10:31 -0500 Message-ID: <1343427031-15212-1-git-send-email-fcooper@ti.com> X-Mailer: git-send-email 1.7.0.4 MIME-Version: 1.0 Cc: Franklin S Cooper Jr Subject: [branch: denzil] [PATCH] busybox: Add inetd related files X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jul 2012 22:19:34 -0000 Content-Type: text/plain * Add back inetd and inetd.conf files which are needed if CONFIG_INETD is enabled in the defconfig. Grabbed these files from oe-classic Signed-off-by: Franklin S Cooper Jr --- meta/recipes-core/busybox/busybox.inc | 1 + meta/recipes-core/busybox/busybox_1.19.4.bb | 6 +++- meta/recipes-core/busybox/files/inetd | 33 +++++++++++++++++++++++++++ meta/recipes-core/busybox/files/inetd.conf | 20 ++++++++++++++++ 4 files changed, 58 insertions(+), 2 deletions(-) create mode 100755 meta/recipes-core/busybox/files/inetd create mode 100644 meta/recipes-core/busybox/files/inetd.conf diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc index ec76ad2..89c51d3 100644 --- a/meta/recipes-core/busybox/busybox.inc +++ b/meta/recipes-core/busybox/busybox.inc @@ -190,6 +190,7 @@ do_install () { fi if grep "CONFIG_INETD=y" ${WORKDIR}/defconfig; then install -m 0755 ${WORKDIR}/inetd ${D}${sysconfdir}/init.d/inetd.${BPN} + sed -i "s:/usr/sbin/:${sbindir}/:" ${D}${sysconfdir}/init.d/inetd.${BPN} install -m 0644 ${WORKDIR}/inetd.conf ${D}${sysconfdir}/ fi if grep "CONFIG_MDEV=y" ${WORKDIR}/defconfig; then diff --git a/meta/recipes-core/busybox/busybox_1.19.4.bb b/meta/recipes-core/busybox/busybox_1.19.4.bb index ad8297e..3093f01 100644 --- a/meta/recipes-core/busybox/busybox_1.19.4.bb +++ b/meta/recipes-core/busybox/busybox_1.19.4.bb @@ -1,5 +1,5 @@ require busybox.inc -PR = "r2" +PR = "r3" SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://udhcpscript.patch \ @@ -24,7 +24,9 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://mdev \ file://mdev.conf \ file://umount.busybox \ - file://defconfig" + file://defconfig \ + file://inetd.conf \ + file://inetd" SRC_URI[tarball.md5sum] = "9c0cae5a0379228e7b55e5b29528df8e" SRC_URI[tarball.sha256sum] = "9b853406da61ffb59eb488495fe99cbb7fb3dd29a31307fcfa9cf070543710ee" diff --git a/meta/recipes-core/busybox/files/inetd b/meta/recipes-core/busybox/files/inetd new file mode 100755 index 0000000..cf50bcd --- /dev/null +++ b/meta/recipes-core/busybox/files/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/recipes-core/busybox/files/inetd.conf b/meta/recipes-core/busybox/files/inetd.conf new file mode 100644 index 0000000..b02fe85 --- /dev/null +++ b/meta/recipes-core/busybox/files/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 -- 1.7.0.4