summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-12-23 05:28:43 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-12-23 05:28:43 +0000
commit3f50b0351b0d93b71ff0920a5b4236c3bef2647e (patch)
tree6074ddfd557f37df526dafbec22b8e4e43715f91
parenta94fdde178cf6315a5c5fd4874a75cb9e9819dfd (diff)
applications/siitwizzard: also prepare firewall include
-rw-r--r--applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua b/applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua
index de4fab001..2d8ad2c56 100644
--- a/applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua
+++ b/applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua
@@ -260,6 +260,15 @@ function mode.write(self, section, value)
dest = "lan"
})
+ -- firewall include
+ uci:delete_all("firewall", "include",
+ function(s) return s.path == "/etc/firewall.user" end)
+
+ uci:section("firewall", "include", nil, {
+ path = "/etc/firewall.user"
+ })
+
+
-- siit0 interface
uci:delete_all("network", "interface",
function(s) return ( s.ifname == "siit0" ) end)