diff options
author | Steven Barth <steven@midlink.org> | 2009-01-25 17:14:45 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-01-25 17:14:45 +0000 |
commit | 26272967cfc861b8069a095aced13c59ec8e1e1d (patch) | |
tree | fe1474efc0c6ac875c53bdd3e4cd37265c19282f /applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua | |
parent | e683011032ec099a866c9582f3e965b4a69074fd (diff) |
FF-Wiazrd: Add OLSR DNS to dnsmasq
Diffstat (limited to 'applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua')
-rw-r--r-- | applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua index 6373c7a807..8fad8e0c89 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 |