From: Jo-Philipp Wich Date: Tue, 23 Dec 2008 05:28:43 +0000 (+0000) Subject: applications/siitwizzard: also prepare firewall include X-Git-Tag: 0.9.0~867 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3f50b0351b0d93b71ff0920a5b4236c3bef2647e;p=oweals%2Fluci.git applications/siitwizzard: also prepare firewall include --- 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)