mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-10-01 12:18:33 +03:00
allow dhcp sections for dnsmasq to add command line options
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6767 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
92d5f8813f
commit
ae2c89d0cd
@ -46,12 +46,13 @@ dhcp_add() {
|
|||||||
config_get start "$cfg" start
|
config_get start "$cfg" start
|
||||||
config_get end "$cfg" end
|
config_get end "$cfg" end
|
||||||
config_get leasetime "$cfg" leasetime
|
config_get leasetime "$cfg" leasetime
|
||||||
|
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))"
|
end="$((${end:-150} + 1))"
|
||||||
eval "$(ipcalc.sh $ipaddr $netmask $start $end)"
|
eval "$(ipcalc.sh $ipaddr $netmask $start $end)"
|
||||||
append args "-F $START,$END,$NETMASK,$leasetime"
|
append args "-F $START,$END,$NETMASK,$leasetime${options:+ $options}"
|
||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
|
Loading…
Reference in New Issue
Block a user