uci:section("network", "route", nil, {
interface = "siit0",
- target = gv4_net:host():string(),
+ target = gv4_net:network():string(),
netmask = gv4_net:mask():string()
})
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)
uci:section("network", "interface", "siit0", {
ifname = "siit0",
- proto = "static",
- ipaddr = "169.254.42.42",
- netmask = "255.255.255.0"
+ proto = "none"
})
-- siit0 route
prefix = siit_route:prefix()
})
+ -- txtinfo v6
+ uci:foreach("olsrd", "LoadPlugin",
+ function(s)
+ if s.library == "olsrd_txtinfo.so.0.1" then
+ uci:set("olsrd", s['.name'], "accept", "::1")
+ end
+ end)
+
uci:save("wireless")
uci:save("firewall")
uci:save("network")