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
owl
Jo-Philipp Wich 2011-10-27 12:39:19 +00:00
parent 3ffe66cbe0
commit 825658977f
2 changed files with 9 additions and 3 deletions

View File

@ -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" ingress 2>&- >&-
tc qdisc del dev "$iface" root 2>&- >&- tc qdisc del dev "$iface" root 2>&- >&-
done done
iptables -t mangle -F /usr/lib/qos/generate.sh firewall stop | sh
iptables -t mangle -X

View File

@ -486,6 +486,13 @@ case "$1" in
start_interfaces start_interfaces
;; ;;
firewall) firewall)
start_firewall case "$2" in
stop)
stop_firewall
;;
start|"")
start_firewall
;;
esac
;; ;;
esac esac