aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/firewall/files/lib/fw.sh4
1 files changed, 2 insertions, 2 deletions
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() { # <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