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
|
# We cannot use a metric if we're using a nexthop
|
||||||
if ! ${have_metric} && \
|
if ! ${have_metric} && \
|
||||||
[ -n "${metric}" -a -z "${cmd##* nexthop }" ]
|
[ -n "${metric}" -a \
|
||||||
|
"${cmd##* nexthop }" = "$cmd" ]
|
||||||
then
|
then
|
||||||
cmd="${cmd} metric ${metric}"
|
cmd="${cmd} metric ${metric}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user