diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2016-10-23 17:25:41 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2016-10-23 17:25:41 -0700 |
commit | bf3ee524b605e6a78f5abeb0e6577ae8a9b16f0c (patch) | |
tree | 76adf9acb36057b1ecb61b925455ee87570baa60 | |
parent | iproute2/_get_route: do not include metric in test for existing route. (diff) | |
download | netifrc-bf3ee524b605e6a78f5abeb0e6577ae8a9b16f0c.tar.gz netifrc-bf3ee524b605e6a78f5abeb0e6577ae8a9b16f0c.tar.bz2 netifrc-bf3ee524b605e6a78f5abeb0e6577ae8a9b16f0c.zip |
iproute2/_get_route: better output on route check
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r-- | net/iproute2.sh | 4 |
1 files 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 |