mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 01:11:14 +00:00
parent
328f9d26d8
commit
038459c125
@ -195,7 +195,7 @@ dhcp_add() {
|
|||||||
leasetime="${leasetime:-12h}"
|
leasetime="${leasetime:-12h}"
|
||||||
start="$(dhcp_calc "${start:-100}")"
|
start="$(dhcp_calc "${start:-100}")"
|
||||||
limit="$((${limit:-150} + 1))"
|
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}"
|
append args "--dhcp-range=$name,$START,$END,$NETMASK,$leasetime${options:+ $options}"
|
||||||
|
|
||||||
dhcp_option_add "$cfg" "$name"
|
dhcp_option_add "$cfg" "$name"
|
||||||
|
Loading…
Reference in New Issue
Block a user