Fix number of arguments check
authorDimitris Aragiorgis <dimara@grnet.gr>
Thu, 28 Jun 2012 10:25:27 +0000 (13:25 +0300)
committerDimitris Aragiorgis <dimara@grnet.gr>
Thu, 28 Jun 2012 10:25:27 +0000 (13:25 +0300)
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

clear-tap
snf-network-ipless-routing-off
snf-network-ipless-routing-on
snf-network-masq-off
snf-network-masq-on

index b88556a..330d493 100755 (executable)
--- a/clear-tap
+++ b/clear-tap
@@ -48,7 +48,7 @@ function clear_ebtables {
 }
 
 
-if [ $# -ne 2 ]; then
+if [ $# -ne 1 ]; then
   echo "Usage: $0 <tap>"
   exit 1
 fi
index 3bfa2df..f5bdd71 100755 (executable)
@@ -12,7 +12,7 @@ fi
 
 source $STATE_DIR/infra
 
-if [ $# -ne 6 ]; then
+if [ $# -ne 5 ]; then
   echo "Usage: $0 <routing table> <subnet> <gateway> <subnet6> <gateway6>"
   exit 1
 fi
index 44b5ef8..5a25021 100755 (executable)
@@ -12,7 +12,7 @@ fi
 
 source $STATE_DIR/infra
 
-if [ $# -ne 6 ]; then
+if [ $# -ne 5 ]; then
   echo "Usage: $0 <routing table> <subnet> <gateway> <subnet6> <gateway6>"
   exit 1
 fi
index f1ca665..c4326ad 100755 (executable)
@@ -12,7 +12,7 @@ fi
 
 source $STATE_DIR/infra
 
-if [ $# -ne 4 ]; then
+if [ $# -ne 3 ]; then
   echo "Usage: $0 <masq bridge> <subnet> <gateway>"
   exit 1
 fi
index d9669f1..016f4d1 100755 (executable)
@@ -12,7 +12,7 @@ fi
 
 source $STATE_DIR/infra
 
-if [ $# -ne 4 ]; then
+if [ $# -ne 3 ]; then
   echo "Usage: $0 <masq bridge> <subnet> <gateway>"
   exit 1
 fi