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