From 898552dcc376d40c9033c65e8c3a7b2ec3b8b92d Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 7 Jul 2010 19:55:37 -0500 Subject: fix metric This change was also taken from Roy Marples' git. --- net/iproute2.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'net/iproute2.sh') diff --git a/net/iproute2.sh b/net/iproute2.sh index 0df8eef7..906a45e0 100644 --- a/net/iproute2.sh +++ b/net/iproute2.sh @@ -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 -- cgit v1.2.3