Finally fix the usage of limit (#2240)
authorFlorian Fainelli <florian@openwrt.org>
Sun, 9 Sep 2007 16:05:14 +0000 (16:05 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 9 Sep 2007 16:05:14 +0000 (16:05 +0000)
SVN-Revision: 8712

package/dnsmasq/files/dnsmasq.init

index 49f10220bc9b18485082ed42af277d9e1637c63c..c39e58417f33c38f4e67c6197ca1e016b79888c1 100644 (file)
@@ -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"