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 DCE80138B0F for ; Mon, 24 Oct 2016 00:25:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2D298E0853; Mon, 24 Oct 2016 00:25:48 +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 12C1EE0853 for ; Mon, 24 Oct 2016 00:25:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 3D3C634163E for ; Mon, 24 Oct 2016 00:25:47 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 09CAC2413 for ; Mon, 24 Oct 2016 00:25:46 +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: <1477268741.bf3ee524b605e6a78f5abeb0e6577ae8a9b16f0c.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: bf3ee524b605e6a78f5abeb0e6577ae8a9b16f0c X-VCS-Branch: master Date: Mon, 24 Oct 2016 00:25:46 +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: 118a7c2b-e6a5-4ccc-9e35-fed59baaaf79 X-Archives-Hash: ab2abde4dfae6352bfe203b82b05d616 commit: bf3ee524b605e6a78f5abeb0e6577ae8a9b16f0c Author: Robin H. Johnson gentoo org> AuthorDate: Mon Oct 24 00:25:41 2016 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Mon Oct 24 00:25:41 2016 +0000 URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=bf3ee524 iproute2/_get_route: better output on route check Signed-off-by: Robin H. Johnson gentoo.org> net/iproute2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/iproute2.sh b/net/iproute2.sh index 1dff3fe..9ef704d 100644 --- a/net/iproute2.sh +++ b/net/iproute2.sh @@ -272,8 +272,8 @@ _add_route() error|fatal) msgfunc=eerror rc=1;; *) msgfunc=eerror rc=1 ; eerror "Unknown error behavior: $eh_behavior" ;; esac - eval $msgfunc "Route '$cmd' already existed." - eval $msgfunc \"$(ip $family route show $cmd dev "${IFACE}" 2>&1)\" + eval $msgfunc "Route '$cmd_nometric' already existed:" + eval $msgfunc \"$(ip $family route show ${cmd_nometric} dev "${IFACE}" 2>&1)\" else : # TODO: Handle other errors fi