diff options
author | Gert Doering <gert@greenie.muc.de> | 2012-06-01 18:13:09 +0300 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2012-06-01 17:28:36 +0200 |
commit | 722027a2798b46cab8be69a830eff1b4ba678739 (patch) | |
tree | ba731a31418c79c8303b82a17f7081f4bb7bfe12 /tests | |
parent | 7046ff20f93eca1d850df43fe716922e6d105c1c (diff) | |
download | openvpn-722027a2798b46cab8be69a830eff1b4ba678739.tar.gz openvpn-722027a2798b46cab8be69a830eff1b4ba678739.tar.xz openvpn-722027a2798b46cab8be69a830eff1b4ba678739.zip |
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 <gert@greenie.muc.de>
Acked-by: David Sommerseth <davids@redhat.com>
Message-Id: 20120601151507.GE400@greenie.muc.de
URL: http://article.gmane.org/gmane.network.openvpn.devel/6637
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/t_client.sh.in | 4 |
1 files changed, 2 insertions, 2 deletions
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 |