8 if [ -z "${1/cfg[0-9a-fA-F]*/}" ]; then
9 section_rename dhcp $1 dnsmasq
14 config_foreach handle_dhcp dnsmasq
17 set dhcp.dnsmasq.local="/$profile_suffix/"
18 set dhcp.dnsmasq.domain="$profile_suffix"
21 config_get addnhosts dnsmasq addnhosts
22 if [ -z "${addnhosts/\var\/etc\/hosts.olsr/}" ]; then
23 uci add_list dhcp.dnsmasq.addnhosts="/var/etc/hosts.olsr"
26 uci_commitverbose "Setup dnsmasq" dhcp