]> code.ossystems Code Review - openembedded-core.git/commitdiff
busybox:udhcpc: Remove the routes from the right interface
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>
Sat, 21 Feb 2015 20:13:08 +0000 (21:13 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 23 Feb 2015 18:00:12 +0000 (18:00 +0000)
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@moiji-mobile.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/busybox/files/simple.script

index b294d57ef7e5baca8e80caa273f77b5ae49d822a..22168b07e644c16d1422d44ea7893100f11c8941 100644 (file)
@@ -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