FF-Wiazrd: Add OLSR DNS to dnsmasq
This commit is contained in:
parent
a65451fcff
commit
bcb9241d46
1 changed files with 6 additions and 0 deletions
|
@ -256,6 +256,12 @@ function olsr.write(self, section, value)
|
|||
olsrbase.ignore = "0"
|
||||
uci:section("olsrd", "Interface", nil, olsrbase)
|
||||
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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue