mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 23:34:34 +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"
|
||||
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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user