]> code.ossystems Code Review - openembedded-core.git/commitdiff
busybox:udhcpc: Start with a metric of 10 for routes
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>
Sat, 21 Feb 2015 20:13:07 +0000 (21:13 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 23 Feb 2015 18:00:12 +0000 (18:00 +0000)
Linux allows to install multiple default routes with
different metrics. Start with a metric above 0 to
allow other parts of the system to install routes
with a lower metric.

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 757e487b979405889167d2c6a81427ddfef39736..b294d57ef7e5baca8e80caa273f77b5ae49d822a 100644 (file)
@@ -56,7 +56,7 @@ case "$1" in
                                 fi
                        fi
 
-                       metric=0
+                       metric=10
                        for i in $router ; do
                                 if [ $have_bin_ip -eq 1 ]; then
                                         ip route add default via $i metric $metric