diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/busybox/busybox-1.11.3/udhcpscript.patch | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/busybox/busybox-1.11.3/udhcpscript.patch')
-rw-r--r-- | recipes/busybox/busybox-1.11.3/udhcpscript.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes/busybox/busybox-1.11.3/udhcpscript.patch b/recipes/busybox/busybox-1.11.3/udhcpscript.patch new file mode 100644 index 0000000000..363f66e03c --- /dev/null +++ b/recipes/busybox/busybox-1.11.3/udhcpscript.patch @@ -0,0 +1,36 @@ + +# +# Patch managed by http://www.holgerschurig.de/patcher.html +# + +Index: busybox-1.11.3/examples/udhcp/simple.script +=================================================================== +--- busybox-1.11.3.orig/examples/udhcp/simple.script 2008-06-25 14:51:33.000000000 +0200 ++++ busybox-1.11.3/examples/udhcp/simple.script 2009-01-06 14:34:40.000000000 +0100 +@@ -8,17 +8,23 @@ + [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" + [ -n "$subnet" ] && NETMASK="netmask $subnet" + ++# return 0 if root is mounted on a network filesystem ++root_is_nfs() { ++ grep -qe '^/dev/root.*\(nfs\|smbfs\|ncp\|coda\) .*' /proc/mounts ++} ++ + case "$1" in + deconfig) +- /sbin/ifconfig $interface 0.0.0.0 ++ if ! root_is_nfs ; then ++ /sbin/ifconfig $interface 0.0.0.0 ++ fi + ;; + + renew|bound) + /sbin/ifconfig $interface $ip $BROADCAST $NETMASK + + if [ -n "$router" ] ; then +- echo "deleting routers" +- while route del default gw 0.0.0.0 dev $interface ; do ++ while route del default gw 0.0.0.0 dev $interface 2>/dev/null ; do + : + done + |