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 /packages/busybox/busybox-1.13.2/udhcpc-fix-nfsroot.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 'packages/busybox/busybox-1.13.2/udhcpc-fix-nfsroot.patch')
-rw-r--r-- | packages/busybox/busybox-1.13.2/udhcpc-fix-nfsroot.patch | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/packages/busybox/busybox-1.13.2/udhcpc-fix-nfsroot.patch b/packages/busybox/busybox-1.13.2/udhcpc-fix-nfsroot.patch deleted file mode 100644 index 39716ec14b..0000000000 --- a/packages/busybox/busybox-1.13.2/udhcpc-fix-nfsroot.patch +++ /dev/null @@ -1,40 +0,0 @@ -diff -uNr busybox-1.13.2-orig/examples/udhcp/simple.script busybox-1.13.2/examples/udhcp/simple.script ---- busybox-1.13.2-orig/examples/udhcp/simple.script 2009-02-04 11:08:13.000000000 -0500 -+++ busybox-1.13.2/examples/udhcp/simple.script 2009-02-04 11:24:51.000000000 -0500 -@@ -8,22 +8,31 @@ - [ -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 -- while route del default gw 0.0.0.0 dev $interface 2>/dev/null ; do -- : -- done -+ if ! root_is_nfs ; then -+ while route del default gw 0.0.0.0 dev $interface 2>/dev/null ; do -+ : -+ done -+ fi - - metric=0 - for i in $router ; do -- route add default gw $i dev $interface metric $((metric++)) -+ route add default gw $i dev $interface metric $((metric++)) 2>/dev/null - done - fi - |