aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2010-07-07 19:55:37 -0500
committerWilliam Hubbs <williamh@gentoo.org>2010-07-07 19:55:37 -0500
commit898552dcc376d40c9033c65e8c3a7b2ec3b8b92d (patch)
tree06ce2ef8420e30597da69eb3482864dce64c0b5a /net
parent6850566be0bfb948f1e4d5f222fa8d0fc88a8ce9 (diff)
fix metric
This change was also taken from Roy Marples' git.
Diffstat (limited to 'net')
-rw-r--r--net/iproute2.sh3
1 files changed, 2 insertions, 1 deletions
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