Skip to content
Snippets Groups Projects
Commit 038459c1 authored by Florian Fainelli's avatar Florian Fainelli
Browse files

Finally fix the usage of limit (#2240)

SVN-Revision: 8712
parent 328f9d26
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment