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 de4fab0..2d8ad2c 100644 (file)
@@ -260,6 +260,15 @@ function mode.write(self, section, value)
                dest = "lan"
        })
 
                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)
        -- siit0 interface
        uci:delete_all("network", "interface",
                function(s) return ( s.ifname == "siit0" ) end)