aboutsummaryrefslogtreecommitdiffstats
path: root/package/firewall
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-05-05 15:50:21 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-05-05 15:50:21 +0000
commite796062a4b7e187d18c7655af50adb24720ce5f7 (patch)
treebd082c6d306e479a0b016dff04baaae8a6cc38a3 /package/firewall
parent0b84caa60ad4215b6dd9d746d4d87e8f6d173221 (diff)
downloadupstream-e796062a4b7e187d18c7655af50adb24720ce5f7.tar.gz
upstream-e796062a4b7e187d18c7655af50adb24720ce5f7.tar.bz2
upstream-e796062a4b7e187d18c7655af50adb24720ce5f7.zip
firewall: properly unset position for delete command, fixes rule removal in ifdown
SVN-Revision: 21378
Diffstat (limited to 'package/firewall')
-rw-r--r--package/firewall/files/lib/fw.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/firewall/files/lib/fw.sh b/package/firewall/files/lib/fw.sh
index c06e864236..72aa37c5bf 100644
--- a/package/firewall/files/lib/fw.sh
+++ b/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