Use a more explicit variable name for the number of dhcp leases (#2240)

SVN-Revision: 8437
This commit is contained in:
Florian Fainelli 2007-08-19 20:50:52 +00:00
parent 803dfa1be8
commit 92cd647b8b
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
config dhcp
option interface lan
option start 100
option end 150
option limit 150
option leasetime 12h
config dhcp

View File

@ -44,14 +44,14 @@ dhcp_add() {
}
config_get start "$cfg" start
config_get end "$cfg" end
config_get limit "$cfg" limit
config_get leasetime "$cfg" leasetime
config_get options "$cfg" options
leasetime="${leasetime:-12h}"
start="$(dhcp_calc "${start:-100}")"
end="$((${end:-150} + 1))"
eval "$(ipcalc.sh $ipaddr $netmask $start $end)"
limit="$((${limit:-150} + 1))"
eval "$(ipcalc.sh $ipaddr $netmask $start $limit)"
append args "-F $START,$END,$NETMASK,$leasetime${options:+ $options}"
}