diff options
Diffstat (limited to 'meta/packages/busybox/busybox-1.9.1/udhcpscript.patch')
| -rw-r--r-- | meta/packages/busybox/busybox-1.9.1/udhcpscript.patch | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/meta/packages/busybox/busybox-1.9.1/udhcpscript.patch b/meta/packages/busybox/busybox-1.9.1/udhcpscript.patch index fc21d440cd..d00755fa3a 100644 --- a/meta/packages/busybox/busybox-1.9.1/udhcpscript.patch +++ b/meta/packages/busybox/busybox-1.9.1/udhcpscript.patch | |||
| @@ -3,9 +3,11 @@ | |||
| 3 | # Patch managed by http://www.holgerschurig.de/patcher.html | 3 | # Patch managed by http://www.holgerschurig.de/patcher.html |
| 4 | # | 4 | # |
| 5 | 5 | ||
| 6 | --- busybox-1.00-rc3/examples/udhcp/simple.script~udhcpscript | 6 | Index: busybox-1.9.1/examples/udhcp/simple.script |
| 7 | +++ busybox-1.00-rc3/examples/udhcp/simple.script | 7 | =================================================================== |
| 8 | @@ -17,8 +17,7 @@ | 8 | --- busybox-1.9.1.orig/examples/udhcp/simple.script 2008-02-12 16:03:13.000000000 +0000 |
| 9 | +++ busybox-1.9.1/examples/udhcp/simple.script 2009-05-27 22:54:42.000000000 +0100 | ||
| 10 | @@ -17,14 +17,13 @@ | ||
| 9 | /sbin/ifconfig $interface $ip $BROADCAST $NETMASK | 11 | /sbin/ifconfig $interface $ip $BROADCAST $NETMASK |
| 10 | 12 | ||
| 11 | if [ -n "$router" ] ; then | 13 | if [ -n "$router" ] ; then |
| @@ -15,3 +17,10 @@ | |||
| 15 | : | 17 | : |
| 16 | done | 18 | done |
| 17 | 19 | ||
| 20 | metric=0 | ||
| 21 | for i in $router ; do | ||
| 22 | - route add default gw $i dev $interface metric $((metric++)) | ||
| 23 | + /sbin/route add default gw $i dev $interface metric $((metric++)) | ||
| 24 | done | ||
| 25 | fi | ||
| 26 | |||
