From 3f50b0351b0d93b71ff0920a5b4236c3bef2647e Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 23 Dec 2008 05:28:43 +0000 Subject: applications/siitwizzard: also prepare firewall include --- applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'applications/luci-siitwizard/luasrc/model/cbi') diff --git a/applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua b/applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua index de4fab001b..2d8ad2c56b 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) -- cgit v1.2.3