diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-05-05 15:50:21 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-05-05 15:50:21 +0000 |
commit | d2f8ac6e8cd3c99fbb81cdf6324edece1b28d5c8 (patch) | |
tree | 52905897e49df41ef7e854675be3899356390c15 /package/firewall/files/lib/fw.sh | |
parent | f8b0bfdc6a29977b66a0f4c093acc4bd6d491b15 (diff) |
[package] firewall: properly unset position for delete command, fixes rule removal in ifdown
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21378 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/firewall/files/lib/fw.sh')
-rw-r--r-- | package/firewall/files/lib/fw.sh | 4 |
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 |