[OE-core] [PATCH 2/2] busybox:udhcpc: Remove the routes from the right interface

Holger Hans Peter Freyther holger at moiji-mobile.com
Sat Feb 21 20:13:08 UTC 2015


When using iproute2 to remove the route all default rules
will be removed. Scope the removal by interface like it is
done with ifconfig.

Signed-off-by: Holger Hans Peter Freyther <holger at moiji-mobile.com>
---
 meta/recipes-core/busybox/files/simple.script | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/busybox/files/simple.script b/meta/recipes-core/busybox/files/simple.script
index b294d57..22168b0 100644
--- a/meta/recipes-core/busybox/files/simple.script
+++ b/meta/recipes-core/busybox/files/simple.script
@@ -46,7 +46,7 @@ case "$1" in
 		if [ -n "$router" ] ; then
 			if ! root_is_nfs ; then
                                 if [ $have_bin_ip -eq 1 ]; then
-                                        while ip route del default 2>/dev/null ; do
+                                        while ip route del default dev $interface 2>/dev/null ; do
                                                 :
                                         done
                                 else
-- 
2.1.4




More information about the Openembedded-core mailing list