Changeset 6712
- Timestamp:
- 01/13/11 14:15:31 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
luci/trunk/applications/luci-ffwizard/luasrc/model/cbi/ffwizard.lua
r6710 r6712 1358 1358 uci:save("dhcp") 1359 1359 -- Import hosts and set domain 1360 uci:foreach("dhcp", "dnsmasq", function(s)1361 uci:set_list("dhcp", s[".name"], "addnhosts", "/var/etc/hosts.olsr")1362 end)1363 1364 1360 if has_ipv6 then 1365 1361 uci:foreach("dhcp", "dnsmasq", function(s) 1366 uci:set_list("dhcp", s[".name"], "addnhosts", "/var/etc/hosts.olsr.ipv6")1362 uci:set_list("dhcp", s[".name"], "addnhosts", {"/var/etc/hosts.olsr","/var/etc/hosts.olsr.ipv6"}) 1367 1363 end) 1368 end 1369 1364 else 1365 uci:foreach("dhcp", "dnsmasq", function(s) 1366 uci:set_list("dhcp", s[".name"], "addnhosts", "/var/etc/hosts.olsr") 1367 end) 1368 end 1370 1369 1371 1370 uci:save("dhcp")
