mirror of
https://github.com/openwrt/luci.git
synced 2025-12-22 01:44:35 +04:00
FF-Wiazrd: Add OLSR DNS to dnsmasq
This commit is contained in:
@@ -256,6 +256,12 @@ function olsr.write(self, section, value)
|
|||||||
olsrbase.ignore = "0"
|
olsrbase.ignore = "0"
|
||||||
uci:section("olsrd", "Interface", nil, olsrbase)
|
uci:section("olsrd", "Interface", nil, olsrbase)
|
||||||
uci:save("olsrd")
|
uci:save("olsrd")
|
||||||
|
|
||||||
|
-- Import hosts
|
||||||
|
uci:foreach("dhcp", "dnsmasq", function(s)
|
||||||
|
uci:set("dhcp", s[".name"], "addnhosts", "/var/etc/hosts.olsr")
|
||||||
|
end)
|
||||||
|
uci:save("dhcp")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user