aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core-ivi/busybox/busybox-1.19.3/udhcpscript.patch
blob: a40b8f590a8a02677f31806c9b1b7f89627553d9 (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
Upstream-Status: Pending

# copy commit message from OE as the patch comment
#   commit c9bb6478a873d6de4c8a0e712435ac9a658a345d
#   Author: Holger Schurig <schurig@mn-solutions.de>
#   Date:   Wed Sep 29 08:29:58 2004 +0000
#
#   udhcpscript: fixes the "deleting routers" error message in case of no existing default routes
#
# Above comment added by Kevin Tian <kevin.tian@intel.com>, 2010-07-06

Index: busybox-1.15.1/examples/udhcp/simple.script
===================================================================
--- busybox-1.15.1.orig/examples/udhcp/simple.script	2009-09-12 17:55:36.000000000 +0200
+++ busybox-1.15.1/examples/udhcp/simple.script	2009-09-16 22:51:06.599693412 +0200
@@ -22,7 +22,7 @@ case "$1" in
 
 		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