applications/siitwizzard: also prepare firewall include
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 23 Dec 2008 05:28:43 +0000 (05:28 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 23 Dec 2008 05:28:43 +0000 (05:28 +0000)
applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua

index de4fab001bcd2c6b8931802f4348f3ef31f7b657..2d8ad2c56bcfd20105886992cdf235bedaf46325 100644 (file)
@@ -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)