fix metric
This change was also taken from Roy Marples' git.
This commit is contained in:
parent
6850566be0
commit
898552dcc3
@ -160,7 +160,8 @@ _add_route()
|
||||
|
||||
# We cannot use a metric if we're using a nexthop
|
||||
if ! ${have_metric} && \
|
||||
[ -n "${metric}" -a -z "${cmd##* nexthop }" ]
|
||||
[ -n "${metric}" -a \
|
||||
"${cmd##* nexthop }" = "$cmd" ]
|
||||
then
|
||||
cmd="${cmd} metric ${metric}"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user