diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-05-05 15:50:21 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-05-05 15:50:21 +0000 |
commit | 7eaaebd00a9ccb29581e0e2062ae90df72f9e700 (patch) | |
tree | 52905897e49df41ef7e854675be3899356390c15 | |
parent | 065e23124682ae292f89a9b8280e8fe88dafa520 (diff) | |
download | upstream-7eaaebd00a9ccb29581e0e2062ae90df72f9e700.tar.gz upstream-7eaaebd00a9ccb29581e0e2062ae90df72f9e700.tar.bz2 upstream-7eaaebd00a9ccb29581e0e2062ae90df72f9e700.zip |
[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
-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 |