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
21 set dhcp.${netrenamed}dhcp="dhcp"
22 set dhcp.${netrenamed}dhcp.interface="${netrenamed}dhcp"
25 set_defaults "dhcp_" dhcp.${netrenamed}dhcp
27 uci_commitverbose "Setup DHCP for $netrenamed" dhcp