commit:     bf3ee524b605e6a78f5abeb0e6577ae8a9b16f0c
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 24 00:25:41 2016 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> 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 <robbat2 <AT> 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

Reply via email to