[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
This commit is contained in:
Jo-Philipp Wich 2010-05-05 15:50:21 +00:00
parent 065e231246
commit 7eaaebd00a

View File

@ -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