Browse Source

firewall: properly unset position for delete command, fixes rule removal in ifdown

SVN-Revision: 21378
Jo-Philipp Wich 16 years ago
parent
commit
e796062a4b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      package/firewall/files/lib/fw.sh

+ 2 - 2
package/firewall/files/lib/fw.sh

@@ -150,8 +150,8 @@ fw__exec() { # <action> <family> <table> <chain> <target> <position> { <rules> }
 
 	if [ $# -gt 0 ]; then
 		shift
-		if [ $cmd == del ]; then
-			pos=-
+		if [ $cmd == delete ]; then
+			pos=
 		fi
 	fi
 	while [ $# -gt 1 ]; do