summaryrefslogtreecommitdiffstats
path: root/package/qos-scripts/files/usr/lib/qos
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-10-27 12:39:19 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-10-27 12:39:19 +0000
commitf6c379666dc69617804a5d9aff19d866da9b42bd (patch)
tree470e5d32783e4cf971510995c27ae31a1490a581 /package/qos-scripts/files/usr/lib/qos
parente8506104c96cb2046780bf5ebb22bdfa6ca249f4 (diff)
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28623 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/qos-scripts/files/usr/lib/qos')
-rwxr-xr-xpackage/qos-scripts/files/usr/lib/qos/generate.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/package/qos-scripts/files/usr/lib/qos/generate.sh b/package/qos-scripts/files/usr/lib/qos/generate.sh
index 093967f7a..a983d159a 100755
--- a/package/qos-scripts/files/usr/lib/qos/generate.sh
+++ b/package/qos-scripts/files/usr/lib/qos/generate.sh
@@ -486,6 +486,13 @@ case "$1" in
start_interfaces
;;
firewall)
- start_firewall
+ case "$2" in
+ stop)
+ stop_firewall
+ ;;
+ start|"")
+ start_firewall
+ ;;
+ esac
;;
esac