fix metric

This change was also taken from Roy Marples' git.
This commit is contained in:
William Hubbs 2010-07-07 19:55:37 -05:00
parent 6850566be0
commit 898552dcc3

View File

@ -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