diff --git a/Shorewall-init/uninstall.sh b/Shorewall-init/uninstall.sh index 57bcccf95..3c6f50fd5 100755 --- a/Shorewall-init/uninstall.sh +++ b/Shorewall-init/uninstall.sh @@ -69,6 +69,43 @@ remove_file() # $1 = file to restore fi } +finished=0 +configure=1 + +while [ $finished -eq 0 ]; do + option=$1 + + case "$option" in + -*) + option=${option#-} + + while [ -n "$option" ]; do + case $option in + h) + usage 0 + ;; + v) + echo "$Product Firewall Installer Version $VERSION" + exit 0 + ;; + ;; + n*) + configure=0 + option=${option#n} + ;; + *) + usage 1 + ;; + esac + done + + shift + ;; + *) + finished=1 + ;; + esac +done # # Read the RC file # diff --git a/Shorewall-lite/uninstall.sh b/Shorewall-lite/uninstall.sh index e4151e450..2c840dd7c 100755 --- a/Shorewall-lite/uninstall.sh +++ b/Shorewall-lite/uninstall.sh @@ -31,7 +31,11 @@ VERSION=xxx #The Build script inserts the actual version usage() # $1 = exit status { ME=$(basename $0) - echo "usage: $ME [ ]" + echo "usage: $ME [