From: Gert Doering <g...@medat.de>

Teach it how to run ifconfig/route on AIX to have meaningful results.

Signed-off-by: Gert Doering <g...@medat.de>
---
 tests/t_client.sh.in |    6 ++++++
 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
-- 
1.6.4


Reply via email to