diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-12-23 05:28:43 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-12-23 05:28:43 +0000 |
commit | 3f50b0351b0d93b71ff0920a5b4236c3bef2647e (patch) | |
tree | 6074ddfd557f37df526dafbec22b8e4e43715f91 /applications/luci-siitwizard/luasrc/model | |
parent | a94fdde178cf6315a5c5fd4874a75cb9e9819dfd (diff) |
applications/siitwizzard: also prepare firewall include
Diffstat (limited to 'applications/luci-siitwizard/luasrc/model')
-rw-r--r-- | applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua | 9 |
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 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) |