From: Florian Fainelli Date: Sun, 9 Sep 2007 16:05:14 +0000 (+0000) Subject: Finally fix the usage of limit (#2240) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=038459c1259996a7d38efe970e245361c6e12bbf;p=openwrt%2Fstaging%2Frmilecki.git Finally fix the usage of limit (#2240) SVN-Revision: 8712 --- diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init index 49f10220bc9..c39e58417f3 100644 --- a/package/dnsmasq/files/dnsmasq.init +++ b/package/dnsmasq/files/dnsmasq.init @@ -195,7 +195,7 @@ dhcp_add() { leasetime="${leasetime:-12h}" start="$(dhcp_calc "${start:-100}")" limit="$((${limit:-150} + 1))" - eval "$(ipcalc.sh $ipaddr $netmask $start $end)" + eval "$(ipcalc.sh $ipaddr $netmask $start $limit)" append args "--dhcp-range=$name,$START,$END,$NETMASK,$leasetime${options:+ $options}" dhcp_option_add "$cfg" "$name"