diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/admin-core/root/lib/uci/schema/default/dhcp | 19 | ||||
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_services/dnsmasq.lua | 3 |
2 files changed, 20 insertions, 2 deletions
diff --git a/modules/admin-core/root/lib/uci/schema/default/dhcp b/modules/admin-core/root/lib/uci/schema/default/dhcp index 5f352328b..86a5a474c 100644 --- a/modules/admin-core/root/lib/uci/schema/default/dhcp +++ b/modules/admin-core/root/lib/uci/schema/default/dhcp @@ -82,14 +82,12 @@ config variable option section 'dhcp.dnsmasq' option title 'Leasefile' option description 'file where given DHCP-leases will be stored' - option datatype file config variable option name 'resolvfile' option section 'dhcp.dnsmasq' option title 'Resolvfile' option description 'local DNS file' - option datatype file config variable option name 'nohosts' @@ -152,6 +150,23 @@ config variable option title 'query port' option datatype port +config variable + option name 'enable_tftp' + option section 'dhcp.dnsmasq' + option title 'Enable builtin TFTP-Server' + option datatype boolean + +config variable + option name 'tftp_root' + option section 'dhcp.dnsmasq' + option title 'TFTP-Server root directory' + option datatype directory + +config variable + option name 'dhcp_boot' + option section 'dhcp.dnsmasq' + option title 'DHCP Boot image' + config section option name 'dhcp' diff --git a/modules/admin-full/luasrc/model/cbi/admin_services/dnsmasq.lua b/modules/admin-full/luasrc/model/cbi/admin_services/dnsmasq.lua index e85306471..04ec1e15c 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_services/dnsmasq.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_services/dnsmasq.lua @@ -38,5 +38,8 @@ s:option(Value, "ednspacket_max").optional = true s:option(Value, "dhcpleasemax").optional = true s:option(Value, "addnhosts").optional = true s:option(Value, "queryport").optional = true +s:option(Flag, "enable_tftp").optional = true +s:option(Value, "tftp_root").optional = true +s:option(Value, "dhcp_boot").optional = true return m
\ No newline at end of file |