diff options
Diffstat (limited to 'meta/recipes-core/busybox/files/busybox-udhcpc')
-rwxr-xr-x | meta/recipes-core/busybox/files/busybox-udhcpc | 25 |
1 files changed, 0 insertions, 25 deletions
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 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # (c) 2010-2011 Wind River Systems, Inc. | ||
4 | # | ||
5 | # Busybox udhcpc init script | ||
6 | # | ||
7 | # script to start the udpchc DHCP client on boots where | ||
8 | # the parameter 'ip=dhcp' was included in the kernel parameters | ||
9 | |||
10 | # ensure the required binaries are present | ||
11 | [ -x /sbin/udhcpc ] || exit 1 | ||
12 | [ -x /bin/grep ] || exit 1 | ||
13 | [ -x /bin/mount ] || exit 1 | ||
14 | |||
15 | # ensure /proc is mounted | ||
16 | if ! mount | grep -q "/proc "; then | ||
17 | exit 2 | ||
18 | fi | ||
19 | |||
20 | rc=0 | ||
21 | if grep -q -E "\bip=dhcp\b" /proc/cmdline; then | ||
22 | /sbin/udhcpc -D -s /usr/share/udhcpc/default.script | ||
23 | rc=$? | ||
24 | fi | ||
25 | exit $rc | ||