mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-03-03 23:28:21 +02:00
[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:
parent
f8b0bfdc6a
commit
d2f8ac6e8c
@ -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…
x
Reference in New Issue
Block a user