fixed iptables/ip6tables switch
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 19 Apr 2008 07:47:00 +0000 (07:47 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 19 Apr 2008 07:47:00 +0000 (07:47 -0000)
testing/do-tests.in

index 54407f2..f6ff19f 100755 (executable)
@@ -233,13 +233,6 @@ do
 @EOF
     fi
 
-    if [ $SUBDIR = "ipv6" ]
-    then
-       IPTABLES="ip6tables"
-    else
-       IPTABLES="iptables"
-    fi
-
     for name in $SUBTESTS
     do
        let "testnumber += 1"
@@ -252,7 +245,7 @@ do
            continue
        fi
 
-       if [ $name = "rw-psk-ipv6" ]
+       if [ $SUBDIR = "ipv6" -o $name = "rw-psk-ipv6" ]
        then
            IPTABLES="ip6tables"
        else