diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-02-21 21:13:08 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-23 18:00:12 +0000 |
commit | 2127a57cb1b3d83f9f7640051403e47e485b132c (patch) | |
tree | ed9c82006e38736fff41e162705407e27b6ef926 /meta/recipes-core | |
parent | 566441f58d398d93f948067cf399d00cf3b37eba (diff) | |
download | openembedded-core-2127a57cb1b3d83f9f7640051403e47e485b132c.tar.gz openembedded-core-2127a57cb1b3d83f9f7640051403e47e485b132c.tar.bz2 openembedded-core-2127a57cb1b3d83f9f7640051403e47e485b132c.zip |
busybox:udhcpc: Remove the routes from the right interface
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>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/busybox/files/simple.script | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/busybox/files/simple.script b/meta/recipes-core/busybox/files/simple.script index b294d57ef7..22168b07e6 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 |