mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 00:11:13 +00:00
firewall: properly unset position for delete command, fixes rule removal in ifdown
SVN-Revision: 21378
This commit is contained in:
parent
0b84caa60a
commit
e796062a4b
@ -150,8 +150,8 @@ fw__exec() { # <action> <family> <table> <chain> <target> <position> { <rules> }
|
|||||||
|
|
||||||
if [ $# -gt 0 ]; then
|
if [ $# -gt 0 ]; then
|
||||||
shift
|
shift
|
||||||
if [ $cmd == del ]; then
|
if [ $cmd == delete ]; then
|
||||||
pos=-
|
pos=
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
while [ $# -gt 1 ]; do
|
while [ $# -gt 1 ]; do
|
||||||
|
Loading…
Reference in New Issue
Block a user