From 722027a2798b46cab8be69a830eff1b4ba678739 Mon Sep 17 00:00:00 2001 From: Gert Doering Date: Fri, 1 Jun 2012 18:13:09 +0300 Subject: t_client.sh iproute2 script fixes Test for existance of "iproute2" with "-n" (Alon) Work around "ip -6 route show" behaviour on FC14 where some parts of the IPv6 route cache would be displayed, which has no relevance to OpenVPN but breaks before/after comparison. Signed-off-by: Gert Doering Acked-by: David Sommerseth Message-Id: 20120601151507.GE400@greenie.muc.de URL: http://article.gmane.org/gmane.network.openvpn.devel/6637 Signed-off-by: David Sommerseth --- tests/t_client.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/t_client.sh.in') diff --git a/tests/t_client.sh.in b/tests/t_client.sh.in index 92e4d2e..d58b821 100755 --- a/tests/t_client.sh.in +++ b/tests/t_client.sh.in @@ -86,12 +86,12 @@ fail() get_ifconfig_route() { # linux / iproute2? (-> if configure got a path) - if [ "@IPROUTE@" != "" ] + if [ -n "@IPROUTE@" ] then echo "-- linux iproute2 --" @IPROUTE@ addr show | grep -v valid_lft @IPROUTE@ route show - @IPROUTE@ -6 route show | sed -e 's/expires [0-9]*sec //' + @IPROUTE@ -o -6 route show | grep -v ' cache' | sed -e 's/expires [0-9]*sec //' return fi -- cgit