commit: 0bd4f26da64fb30e0fba06e5866f0bdac132459b
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 24 00:17:08 2016 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon Oct 24 00:17:08 2016 +0000
URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=0bd4f26d
iproute2/_add_route: ensure metric is set properly.
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
net/iproute2.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/iproute2.sh b/net/iproute2.sh
index 408e293..938a5fb 100644
--- a/net/iproute2.sh
+++ b/net/iproute2.sh
@@ -235,7 +235,7 @@ _add_route()
local cmd= have_metric=false
while [ -n "$1" ]; do
case "$1" in
- metric) cmd="${cmd} $1"; have_metric=true;;
+ metric) cmd="${cmd} metric $2"; shift ;
have_metric=true;;
netmask) cmd="${cmd}/$(_netmask2cidr "$2")"; shift;;
-host|-net);;
*) cmd="${cmd} $1";;