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