summaryrefslogtreecommitdiffstats
path: root/meta/packages/busybox/busybox-1.16.2/udhcpscript.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/busybox/busybox-1.16.2/udhcpscript.patch')
-rw-r--r--meta/packages/busybox/busybox-1.16.2/udhcpscript.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/packages/busybox/busybox-1.16.2/udhcpscript.patch b/meta/packages/busybox/busybox-1.16.2/udhcpscript.patch
new file mode 100644
index 0000000000..81bca634af
--- /dev/null
+++ b/meta/packages/busybox/busybox-1.16.2/udhcpscript.patch
@@ -0,0 +1,22 @@
1# copy commit message from OE as the patch comment
2# commit c9bb6478a873d6de4c8a0e712435ac9a658a345d
3# Author: Holger Schurig <schurig@mn-solutions.de>
4# Date: Wed Sep 29 08:29:58 2004 +0000
5#
6# udhcpscript: fixes the "deleting routers" error message in case of no existing default routes
7#
8# Above comment added by Kevin Tian <kevin.tian@intel.com>, 2010-07-06
9
10Index: busybox-1.15.1/examples/udhcp/simple.script
11===================================================================
12--- busybox-1.15.1.orig/examples/udhcp/simple.script 2009-09-12 17:55:36.000000000 +0200
13+++ busybox-1.15.1/examples/udhcp/simple.script 2009-09-16 22:51:06.599693412 +0200
14@@ -22,7 +22,7 @@ case "$1" in
15
16 if [ -n "$router" ] ; then
17 echo "Deleting routers"
18- while route del default gw 0.0.0.0 dev $interface ; do
19+ while route del default gw 0.0.0.0 dev $interface 2>/dev/null ; do
20 :
21 done
22