lanip = f:field(Value, "ipaddr", "LAN IP Adresse")
lanip.value = "172.23.1.1"
-lanmsk = f:field(Value, "netmask", "Lokale LAN Netzmaske")
+lanmsk = f:field(Value, "lanmask", "Lokale LAN Netzmaske")
lanmsk.value = "255.255.255.0"
-gv4msk = f:field(Value, "netmask", "Globale LAN Netzmaske")
+gv4msk = f:field(Value, "gv4mask", "Globale LAN Netzmaske")
gv4msk.value = "255.255.0.0"
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)
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")