diff options
author | William Hubbs <williamh@gentoo.org> | 2010-07-07 19:55:37 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2010-07-07 19:55:37 -0500 |
commit | 898552dcc376d40c9033c65e8c3a7b2ec3b8b92d (patch) | |
tree | 06ce2ef8420e30597da69eb3482864dce64c0b5a /net | |
parent | 6850566be0bfb948f1e4d5f222fa8d0fc88a8ce9 (diff) |
fix metric
This change was also taken from Roy Marples' git.
Diffstat (limited to 'net')
-rw-r--r-- | net/iproute2.sh | 3 |
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 |