mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-09 18:59:13 +08:00
allow dhcp sections for dnsmasq to add command line options
SVN-Revision: 6767
This commit is contained in:
parent
47fce96471
commit
9dd72732bb
@ -46,12 +46,13 @@ dhcp_add() {
|
||||
config_get start "$cfg" start
|
||||
config_get end "$cfg" end
|
||||
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)"
|
||||
append args "-F $START,$END,$NETMASK,$leasetime"
|
||||
append args "-F $START,$END,$NETMASK,$leasetime${options:+ $options}"
|
||||
}
|
||||
|
||||
start() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user