From: Jo-Philipp Wich Date: Wed, 5 May 2010 15:50:21 +0000 (+0000) Subject: firewall: properly unset position for delete command, fixes rule removal in ifdown X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e796062a4b7e187d18c7655af50adb24720ce5f7;p=openwrt%2Fstaging%2Fblocktrron.git firewall: properly unset position for delete command, fixes rule removal in ifdown SVN-Revision: 21378 --- 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() { # { } if [ $# -gt 0 ]; then shift - if [ $cmd == del ]; then - pos=- + if [ $cmd == delete ]; then + pos= fi fi while [ $# -gt 1 ]; do