From 1392ad82ec9309169306da05b84caa072bb4414a Mon Sep 17 00:00:00 2001
From: John Crispin <blogic@openwrt.org>
Date: Wed, 27 Aug 2008 16:48:54 +0000
Subject: make sure uci firewall reverts its states when stopped

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12403 3c298f89-4303-0410-b956-a3cf2f4a3e73
---
 package/firewall/files/uci_firewall.sh | 1 +
 1 file changed, 1 insertion(+)

(limited to 'package/firewall')

diff --git a/package/firewall/files/uci_firewall.sh b/package/firewall/files/uci_firewall.sh
index ca5d51267e..5063d9e088 100755
--- a/package/firewall/files/uci_firewall.sh
+++ b/package/firewall/files/uci_firewall.sh
@@ -323,4 +323,5 @@ fw_stop() {
 	$IPTABLES -P INPUT ACCEPT
 	$IPTABLES -P OUTPUT ACCEPT
 	$IPTABLES -P FORWARD ACCEPT
+	uci_revert_state firewall core
 }
-- 
cgit v1.2.3