summaryrefslogtreecommitdiff
path: root/package/qos-scripts/files/usr/bin
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-10-27 12:39:19 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-10-27 12:39:19 +0000
commit825658977f19c135acadc1ae741e376f796446a5 (patch)
tree84f7788616ea2b7ab777786c139f9804ec2f9763 /package/qos-scripts/files/usr/bin
parent3ffe66cbe07eedf0f8136c0fb063c6d7a81c8fbd (diff)
downloadmtk-20170518-825658977f19c135acadc1ae741e376f796446a5.zip
mtk-20170518-825658977f19c135acadc1ae741e376f796446a5.tar.gz
mtk-20170518-825658977f19c135acadc1ae741e376f796446a5.tar.bz2
Add QoS firewall stop script generation
To prevent code duplication for clearing QoS firewall rules, support "firewall stop" arguments to generate.sh to generate the necessary script commands. Make use of this from qos-stop. Signed-off-by: Kevin Locke <klocke@digitalenginesoftware.com> SVN-Revision: 28623
Diffstat (limited to 'package/qos-scripts/files/usr/bin')
-rwxr-xr-xpackage/qos-scripts/files/usr/bin/qos-stop3
1 files changed, 1 insertions, 2 deletions
diff --git a/package/qos-scripts/files/usr/bin/qos-stop b/package/qos-scripts/files/usr/bin/qos-stop
index d0243be..7f654d8 100755
--- a/package/qos-scripts/files/usr/bin/qos-stop
+++ b/package/qos-scripts/files/usr/bin/qos-stop
@@ -3,5 +3,4 @@ for iface in $(tc qdisc show | grep -E '(hfsc|ingress)' | awk '{print $5}'); do
tc qdisc del dev "$iface" ingress 2>&- >&-
tc qdisc del dev "$iface" root 2>&- >&-
done
-iptables -t mangle -F
-iptables -t mangle -X
+/usr/lib/qos/generate.sh firewall stop | sh