1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-11-18 22:43:53 +01:00

Finally fix the usage of limit (#2240)

SVN-Revision: 8712
This commit is contained in:
Florian Fainelli 2007-09-09 16:05:14 +00:00
parent 328f9d26d8
commit 038459c125

@ -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"