summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-ffwizard/luasrc/model/cbi
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-ffwizard/luasrc/model/cbi')
-rw-r--r--applications/luci-ffwizard/luasrc/model/cbi/ffwizard.lua11
1 files changed, 5 insertions, 6 deletions
diff --git a/applications/luci-ffwizard/luasrc/model/cbi/ffwizard.lua b/applications/luci-ffwizard/luasrc/model/cbi/ffwizard.lua
index f963c16fdf..d9d1c0ef9f 100644
--- a/applications/luci-ffwizard/luasrc/model/cbi/ffwizard.lua
+++ b/applications/luci-ffwizard/luasrc/model/cbi/ffwizard.lua
@@ -1357,17 +1357,16 @@ function main.write(self, section, value)
uci:save("olsrd")
uci:save("dhcp")
-- Import hosts and set domain
- uci:foreach("dhcp", "dnsmasq", function(s)
- uci:set_list("dhcp", s[".name"], "addnhosts", "/var/etc/hosts.olsr")
- end)
-
if has_ipv6 then
uci:foreach("dhcp", "dnsmasq", function(s)
- uci:set_list("dhcp", s[".name"], "addnhosts", "/var/etc/hosts.olsr.ipv6")
+ uci:set_list("dhcp", s[".name"], "addnhosts", {"/var/etc/hosts.olsr","/var/etc/hosts.olsr.ipv6"})
end)
+ else
+ uci:foreach("dhcp", "dnsmasq", function(s)
+ uci:set_list("dhcp", s[".name"], "addnhosts", "/var/etc/hosts.olsr")
+ end)
end
-
uci:save("dhcp")
-- Internet sharing