From f109a3ebc7f0df24dcbf6183bd321086fd12dc0a Mon Sep 17 00:00:00 2001 From: bbruns Date: Mon, 27 Sep 2010 20:14:09 +0000 Subject: [PATCH] if syntax errors --- bin/firewall-sosdg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/firewall-sosdg b/bin/firewall-sosdg index 6af7a83..b10e5bc 100755 --- a/bin/firewall-sosdg +++ b/bin/firewall-sosdg @@ -262,7 +262,7 @@ fi if [ "$TCPPORTS" ] || [ "$UDPPORTS" ]; then display_c YELLOW "Adding allowed port: " N if [ "$TCPPORTS" ]; then - if [ $IPTABLES_MULTIPORT == "yes" ] && [ $NF_MULTIPORT_MAX_PORTS ]; then + if [ "$IPTABLES_MULTIPORT" == "yes" ] && [ "$NF_MULTIPORT_MAX_PORTS" ]; then TCPPORTS=($TCPPORTS) PORTS_COUNT=${#TCPPORTS[@]} PORTS_COUNT_CURR=0 @@ -277,7 +277,7 @@ if [ "$TCPPORTS" ] || [ "$UDPPORTS" ]; then unset PORTS PORTS_COUNT_CURR=$i done - unset y PORTS PORTS_COUNT_CURR PORTS_COUNT + unset i PORTS PORTS_COUNT_CURR PORTS_COUNT else for i in $TCPPORTS; do echo -en "${PURPLE}TCP${DEFAULT_COLOR}/${GREEN}$i " @@ -565,7 +565,7 @@ if [ $IPV6 ]; then if [ "$IPV6TCP" ] || [ "$IPV6UDP" ]; then display_c YELLOW "Adding allowed IPv6 port: " N if [ "$IPV6TCP" ]; then - if [ $IPTABLES_MULTIPORT == "yes" ] && [ $NF_MULTIPORT_MAX_PORTS ]; then + if [ "$IPTABLES_MULTIPORT" == "yes" ] && [ "$NF_MULTIPORT_MAX_PORTS" ]; then IPV6TCP=($IPV6TCP) PORTS_COUNT=${#IPV6TCP[@]} PORTS_COUNT_CURR=0 @@ -580,7 +580,7 @@ if [ $IPV6 ]; then unset PORTS PORTS_COUNT_CURR=$i done - unset y PORTS PORTS_COUNT_CURR PORTS_COUNT + unset i PORTS PORTS_COUNT_CURR PORTS_COUNT fi else for i in $IPV6TCP; do