summaryrefslogtreecommitdiff
path: root/package/qos-scripts/files/usr/bin/qos-stop
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-02-21 01:33:27 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-02-21 01:33:27 +0000
commitfca74c3a44ec734916a39e979e8f0286accbe7d0 (patch)
treebd4867ccb249f3ed7a604e4249f07124c05bd7fd /package/qos-scripts/files/usr/bin/qos-stop
parentc0f0316109911b01fff6e4acf82c38bb3d6d4081 (diff)
downloadmtk-20170518-fca74c3a44ec734916a39e979e8f0286accbe7d0.zip
mtk-20170518-fca74c3a44ec734916a39e979e8f0286accbe7d0.tar.gz
mtk-20170518-fca74c3a44ec734916a39e979e8f0286accbe7d0.tar.bz2
qos-scripts: drop the use of IMQ, use ifb and act_connmark instead
SVN-Revision: 25640
Diffstat (limited to 'package/qos-scripts/files/usr/bin/qos-stop')
-rwxr-xr-xpackage/qos-scripts/files/usr/bin/qos-stop5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/qos-scripts/files/usr/bin/qos-stop b/package/qos-scripts/files/usr/bin/qos-stop
index 2275ea1..d0243be 100755
--- a/package/qos-scripts/files/usr/bin/qos-stop
+++ b/package/qos-scripts/files/usr/bin/qos-stop
@@ -1,6 +1,7 @@
#!/bin/sh
-for iface in $(tc qdisc show | grep hfsc | awk '{print $5}'); do
- tc qdisc del dev "$iface" root
+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