summaryrefslogtreecommitdiff
path: root/meta/packages/busybox/busybox-1.9.1/udhcpscript.patch
blob: d00755fa3ac27ad9efc7c742f743090759f06542 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

Index: busybox-1.9.1/examples/udhcp/simple.script
===================================================================
--- busybox-1.9.1.orig/examples/udhcp/simple.script	2008-02-12 16:03:13.000000000 +0000
+++ busybox-1.9.1/examples/udhcp/simple.script	2009-05-27 22:54:42.000000000 +0100
@@ -17,14 +17,13 @@
 		/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
 
 			metric=0
 			for i in $router ; do
-				route add default gw $i dev $interface metric $((metric++))
+				/sbin/route add default gw $i dev $interface metric $((metric++))
 			done
 		fi