From: Gert Doering Date: Fri, 1 Jun 2012 15:13:09 +0000 (+0300) Subject: t_client.sh iproute2 script fixes X-Git-Tag: v2.3_alpha2~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=722027a2798b46cab8be69a830eff1b4ba678739;p=thirdparty%2Fopenvpn.git 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 --- diff --git a/tests/t_client.sh.in b/tests/t_client.sh.in index 92e4d2e1b..d58b82109 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