2 # Sets up the dhcp part of dnsmasq
10 config_get interface "$1" interface
11 if [ "$interface" == "${netrenamed}dhcp" ]; then
12 if [ -z "${1/cfg[0-9a-fA-F]*/}" ]; then
13 section_rename dhcp $1 ${netrenamed}dhcp
18 config_foreach handle_dnsmasq dhcp
20 [ "$net" == "lan" ] && uci -q delete dhcp.lan
23 set dhcp.${netrenamed}dhcp="dhcp"
24 set dhcp.${netrenamed}dhcp.interface="${netrenamed}dhcp"
27 set_defaults "dhcp_" dhcp.${netrenamed}dhcp
29 uci_commitverbose "Setup DHCP for $netrenamed" dhcp