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 49f1022..c39e584 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"