mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-27 14:11:06 +02:00
Use a more explicit variable name for the number of dhcp leases (#2240)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8437 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
5ef93ec8e1
commit
e76b8552e2
@ -1,7 +1,7 @@
|
|||||||
config dhcp
|
config dhcp
|
||||||
option interface lan
|
option interface lan
|
||||||
option start 100
|
option start 100
|
||||||
option end 150
|
option limit 150
|
||||||
option leasetime 12h
|
option leasetime 12h
|
||||||
|
|
||||||
config dhcp
|
config dhcp
|
||||||
|
@ -44,14 +44,14 @@ dhcp_add() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
config_get start "$cfg" start
|
config_get start "$cfg" start
|
||||||
config_get end "$cfg" end
|
config_get limit "$cfg" limit
|
||||||
config_get leasetime "$cfg" leasetime
|
config_get leasetime "$cfg" leasetime
|
||||||
config_get options "$cfg" options
|
config_get options "$cfg" options
|
||||||
|
|
||||||
leasetime="${leasetime:-12h}"
|
leasetime="${leasetime:-12h}"
|
||||||
start="$(dhcp_calc "${start:-100}")"
|
start="$(dhcp_calc "${start:-100}")"
|
||||||
end="$((${end:-150} + 1))"
|
limit="$((${limit:-150} + 1))"
|
||||||
eval "$(ipcalc.sh $ipaddr $netmask $start $end)"
|
eval "$(ipcalc.sh $ipaddr $netmask $start $limit)"
|
||||||
append args "-F $START,$END,$NETMASK,$leasetime${options:+ $options}"
|
append args "-F $START,$END,$NETMASK,$leasetime${options:+ $options}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user