]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Make t_client.sh work on AIX.
authorGert Doering <gd@medat.de>
Tue, 10 Jun 2014 14:04:33 +0000 (16:04 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 7 Jul 2014 18:19:37 +0000 (20:19 +0200)
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>
tests/t_client.sh.in

index 52c5ed1ac6475ec88c46d72c10f3e00e50aa636e..d4f7c4ab33004ebbb7868d536d65f6cb81cac828 100755 (executable)
@@ -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