openwrt/package/qos-scripts/files/usr/bin/qos-stop
2011-02-21 01:33:27 +00:00

8 lines
224 B
Bash
Executable File

#!/bin/sh
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