From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 00B8B138B0F for ; Mon, 24 Oct 2016 00:23:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 083FBE0810; Mon, 24 Oct 2016 00:23:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E1452E080A for ; Mon, 24 Oct 2016 00:23:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 722C034164D for ; Mon, 24 Oct 2016 00:23:21 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 796A724A0 for ; Mon, 24 Oct 2016 00:23:19 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1477268228.0bd4f26da64fb30e0fba06e5866f0bdac132459b.robbat2@OpenRC> Subject: [gentoo-commits] proj/netifrc:master commit in: net/ X-VCS-Repository: proj/netifrc X-VCS-Files: net/iproute2.sh X-VCS-Directories: net/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 0bd4f26da64fb30e0fba06e5866f0bdac132459b X-VCS-Branch: master Date: Mon, 24 Oct 2016 00:23:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5136fb13-e3cc-47cc-b599-ccb3f43d73c3 X-Archives-Hash: d9b03d4469dafdc5b0a3d725f1275e64 commit: 0bd4f26da64fb30e0fba06e5866f0bdac132459b Author: Robin H. Johnson gentoo org> AuthorDate: Mon Oct 24 00:17:08 2016 +0000 Commit: Robin H. Johnson gentoo 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 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";;