firewall: properly unset position for delete command, fixes rule removal in ifdown

SVN-Revision: 21378
v19.07.3_mercusys_ac12_duma
Jo-Philipp Wich 14 years ago
parent 0b84caa60a
commit e796062a4b

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

Loading…
Cancel
Save