busybox:udhcpc: Start with a metric of 10 for routes

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.

(From OE-Core rev: 566441f58d398d93f948067cf399d00cf3b37eba)

Signed-off-by: Holger Hans Peter Freyther <holger@moiji-mobile.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Holger Hans Peter Freyther 2015-02-21 21:13:07 +01:00 committed by Richard Purdie
parent 0e04c93bae
commit 48fa8684dd
1 changed files with 1 additions and 1 deletions

View 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