mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-30 16:14:12 +00:00
dnsmasq: add option to specify dhcp-hostsfile (#5079)
SVN-Revision: 15747
This commit is contained in:
parent
8df0db79a6
commit
ff3c63fb61
@ -81,6 +81,9 @@ dnsmasq() {
|
|||||||
config_get leasefile $cfg leasefile
|
config_get leasefile $cfg leasefile
|
||||||
[ -e "$leasefile" ] || touch "$leasefile"
|
[ -e "$leasefile" ] || touch "$leasefile"
|
||||||
config_get_bool cachelocal "$cfg" cachelocal 1
|
config_get_bool cachelocal "$cfg" cachelocal 1
|
||||||
|
|
||||||
|
config_get hostsfile "$cfg" dhcphostsfile
|
||||||
|
[ -e "$hostsfile" ] && append args "--dhcp-hostsfile=$hostsfile"
|
||||||
}
|
}
|
||||||
|
|
||||||
dhcp_subscrid_add() {
|
dhcp_subscrid_add() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user