mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 03:01:09 +02:00
Finally fix the usage of limit (#2240)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8712 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
c8ae05cb22
commit
cf8c1d5456
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user