From d54c3dab577d270033650081df526b1da5dfc1db Mon Sep 17 00:00:00 2001 From: Chiradeep Vittal Date: Thu, 11 Aug 2011 11:25:10 -0700 Subject: [PATCH] fix firewall script. FIXME: make this 2 different scripts --- scripts/network/domr/call_firewall.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/network/domr/call_firewall.sh b/scripts/network/domr/call_firewall.sh index 922b69a80ae..1e4dc939eaf 100755 --- a/scripts/network/domr/call_firewall.sh +++ b/scripts/network/domr/call_firewall.sh @@ -29,11 +29,10 @@ usage() { printf "Usage for other purposes : %s: (-A|-D) -i -r -P protocol (-p port_range | -t icmp_type_code) -l -d [-f -u -y -z ] \n" $(basename $0) >&2 } -# set -x +#set -x # check if gateway domain is up and running check_gw() { -# return 0; ping -c 1 -n -q $1 > /dev/null if [ $? -gt 0 ] then @@ -54,11 +53,12 @@ then exit 1 fi fflag= -while getopts 'F:' OPTION +while getopts ':F' OPTION do case $OPTION in F) fflag=1 ;; + \?) ;; esac done