From: Gert Doering Date: Tue, 10 Jun 2014 14:04:33 +0000 (+0200) Subject: Make t_client.sh work on AIX. X-Git-Tag: v2.4_alpha1~403 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a637016ea3a6b49e3c792ca335f50eb32a182093;p=thirdparty%2Fopenvpn.git 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 Acked-by: Arne Schwabe 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 --- diff --git a/tests/t_client.sh.in b/tests/t_client.sh.in index 52c5ed1ac..d4f7c4ab3 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