From a4b1e348484b74d055b8906413892789d3452f4a Mon Sep 17 00:00:00 2001 From: Jesse Zhang Date: Fri, 27 Jul 2012 17:03:52 +0800 Subject: busybox: udhcpc shouldn't be a service udhcpc is invoked from the networking service, so it shouldn't exist standalone. If /etc/init.d/busybox-udhcpc is present, it will cause udhcpc to be started two times. And since the script doesn't support the stop action, it will cause udhcpc to be started even when system is being shutdown. Remove /etc/init.d/busybox-udhcpc to resolve the issues. [YOCTO #2840] (From OE-Core rev: 8329c4679ec0ce319d2a81d755a0da5b05474688) Signed-off-by: Jesse Zhang Signed-off-by: Richard Purdie --- meta/recipes-core/busybox/files/busybox-udhcpc | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100755 meta/recipes-core/busybox/files/busybox-udhcpc (limited to 'meta/recipes-core/busybox/files') diff --git a/meta/recipes-core/busybox/files/busybox-udhcpc b/meta/recipes-core/busybox/files/busybox-udhcpc deleted file mode 100755 index 2c43f8da2e..0000000000 --- a/meta/recipes-core/busybox/files/busybox-udhcpc +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh -# -# (c) 2010-2011 Wind River Systems, Inc. -# -# Busybox udhcpc init script -# -# script to start the udpchc DHCP client on boots where -# the parameter 'ip=dhcp' was included in the kernel parameters - -# ensure the required binaries are present -[ -x /sbin/udhcpc ] || exit 1 -[ -x /bin/grep ] || exit 1 -[ -x /bin/mount ] || exit 1 - -# ensure /proc is mounted -if ! mount | grep -q "/proc "; then - exit 2 -fi - -rc=0 -if grep -q -E "\bip=dhcp\b" /proc/cmdline; then - /sbin/udhcpc -D -s /usr/share/udhcpc/default.script - rc=$? -fi -exit $rc -- cgit v1.2.3-54-g00ecf