X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/a5628b31a4092369fcec6966fbddddd282cd6d08..26be7635173c068c8cafd0a9cafb27c4faf3dd16:/package/dnsmasq/files/dnsmasq.init diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init index 1d4cc5a99..4d5b660aa 100644 --- a/package/dnsmasq/files/dnsmasq.init +++ b/package/dnsmasq/files/dnsmasq.init @@ -44,20 +44,21 @@ dhcp_add() { } config_get start "$cfg" start - config_get end "$cfg" end + config_get limit "$cfg" limit config_get leasetime "$cfg" leasetime config_get options "$cfg" options leasetime="${leasetime:-12h}" start="$(dhcp_calc "${start:-100}")" - end="$((${end:-150} + 1))" - eval "$(ipcalc.sh $ipaddr $netmask $start $end)" + limit="$((${limit:-150} + 1))" + eval "$(ipcalc.sh $ipaddr $netmask $start $limit)" append args "-F $START,$END,$NETMASK,$leasetime${options:+ $options}" } start() { include /lib/network scan_interfaces + config_load /var/state/network config_load dhcp args=""