From: Steven Barth Date: Sun, 25 Jan 2009 17:15:09 +0000 (+0000) Subject: FF-Wiazrd: Add OLSR DNS to dnsmasq X-Git-Tag: 0.8.5~42 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bcb9241d467c63a93ea23f704484471a4249e5fc;p=oweals%2Fluci.git FF-Wiazrd: Add OLSR DNS to dnsmasq --- diff --git a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua index 6373c7a80..8fad8e0c8 100644 --- a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua +++ b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua @@ -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