summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGert Doering <gd@medat.de>2014-06-10 16:04:33 +0200
committerGert Doering <gert@greenie.muc.de>2014-07-07 20:19:37 +0200
commita637016ea3a6b49e3c792ca335f50eb32a182093 (patch)
tree36901d87ff202dd7f100902bf3d3c52504c7f2c1
parentb4b92ae5dca218325dfbe16992922716ea83e261 (diff)
downloadopenvpn-a637016ea3a6b49e3c792ca335f50eb32a182093.tar.gz
openvpn-a637016ea3a6b49e3c792ca335f50eb32a182093.tar.xz
openvpn-a637016ea3a6b49e3c792ca335f50eb32a182093.zip
Make t_client.sh work on AIX.
Teach it how to run ifconfig/route on AIX to have meaningful results. Signed-off-by: Gert Doering <gd@medat.de> Acked-by: Arne Schwabe <arne@rfc2549.org> Message-Id: <1402409073-54067216-5-git-send-email-gert@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/8786 Signed-off-by: Gert Doering <gert@greenie.muc.de>
-rwxr-xr-xtests/t_client.sh.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/t_client.sh.in b/tests/t_client.sh.in
index 52c5ed1..d4f7c4a 100755
--- a/tests/t_client.sh.in
+++ b/tests/t_client.sh.in
@@ -134,6 +134,12 @@ get_ifconfig_route()
@NETSTAT@ -rn | awk '$3 !~ /^UHL/ { print $1,$2,$3,$6 }'
return
;;
+ AIX)
+ echo "-- AIX --"
+ @IFCONFIG@ -a | egrep "(flags=|inet)"
+ @NETSTAT@ -rn | awk '$3 !~ /^UHL/ { print $1,$2,$3,$6 }'
+ return
+ ;;
esac
echo "get_ifconfig_route(): no idea how to get info on your OS. FAIL." >&2