]> code.ossystems Code Review - meta-freescale.git/commitdiff
busybox: fix install error when CONFIG_INETD enabled
authorTing Liu <b28495@freescale.com>
Mon, 27 Feb 2012 10:40:53 +0000 (10:40 +0000)
committerMatthew McClintock <msm@freescale.com>
Mon, 27 Feb 2012 16:19:34 +0000 (10:19 -0600)
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 <b28495@freescale.com>
meta-fsl-ppc/recipes-append/busybox/busybox-1.18.5/inetd [new file with mode: 0644]
meta-fsl-ppc/recipes-append/busybox/busybox-1.18.5/inetd.conf [new file with mode: 0644]
meta-fsl-ppc/recipes-append/busybox/busybox_1.18.5.bbappend

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 (file)
index 0000000..cf50bcd
--- /dev/null
@@ -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 (file)
index 0000000..b02fe85
--- /dev/null
@@ -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.
+#
+# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
+#
+#: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
index b285c16ce48f6245b2a2227e4652b582102fe5f2..cdf171b071f548a9aefe94dcf41bbe0542c8c7a0 100644 (file)
@@ -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 \
 "