mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-19 11:16:32 +00:00
dnsmasq: fix jail_mount for serversfile
Fix 'serversfile' option not being jail_mounted by the init script.
Signed-off-by: Bruno Victal <brunovictal@outlook.com>
(cherry picked from commit 0276fab649
)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
ca58b8b4fe
commit
0179ba7851
@ -972,7 +972,14 @@ dnsmasq_start()
|
|||||||
config_list_foreach "$cfg" "addnhosts" append_addnhosts
|
config_list_foreach "$cfg" "addnhosts" append_addnhosts
|
||||||
config_list_foreach "$cfg" "bogusnxdomain" append_bogusnxdomain
|
config_list_foreach "$cfg" "bogusnxdomain" append_bogusnxdomain
|
||||||
append_parm "$cfg" "leasefile" "--dhcp-leasefile" "/tmp/dhcp.leases"
|
append_parm "$cfg" "leasefile" "--dhcp-leasefile" "/tmp/dhcp.leases"
|
||||||
append_parm "$cfg" "serversfile" "--servers-file"
|
|
||||||
|
local serversfile
|
||||||
|
config_get serversfile "$cfg" "serversfile"
|
||||||
|
[ -n "$serversfile" ] && {
|
||||||
|
xappend "--servers-file=$serversfile"
|
||||||
|
append EXTRA_MOUNT "$serversfile"
|
||||||
|
}
|
||||||
|
|
||||||
append_parm "$cfg" "tftp_root" "--tftp-root"
|
append_parm "$cfg" "tftp_root" "--tftp-root"
|
||||||
append_parm "$cfg" "dhcp_boot" "--dhcp-boot"
|
append_parm "$cfg" "dhcp_boot" "--dhcp-boot"
|
||||||
append_parm "$cfg" "local_ttl" "--local-ttl"
|
append_parm "$cfg" "local_ttl" "--local-ttl"
|
||||||
|
Loading…
Reference in New Issue
Block a user