From: Steven Barth Date: Fri, 17 Oct 2008 16:18:02 +0000 (+0000) Subject: Added support for PXE boot configuration X-Git-Tag: 0.9.0~1091 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=f68d31c8f0526ea879c71a5e80f072b7d9d7e0aa Added support for PXE boot configuration --- diff --git a/i18n/english/luasrc/i18n/admin-core.en.lua b/i18n/english/luasrc/i18n/admin-core.en.lua index 32606613e..ffd15a4fc 100644 --- a/i18n/english/luasrc/i18n/admin-core.en.lua +++ b/i18n/english/luasrc/i18n/admin-core.en.lua @@ -162,6 +162,9 @@ dhcp_dnsmasq_ednspacket_max = 'max. max. DHCP-Leases' dhcp_dnsmasq_addnhosts = 'additional hostfile' dhcp_dnsmasq_queryport = 'query port' +dhcp_dnsmasq_enabletftp = 'Enable TFTP-Server' +dhcp_dnsmasq_tftproot = 'TFTP-Server Root' +dhcp_dnsmasq_dhcpboot = 'Network Boot Image' a_n_switch = 'Switch' a_n_conntrack = 'Active Connections' a_n_conntrack_desc = 'This page gives an overview over currently active network connections.' diff --git a/i18n/english/luasrc/i18n/admin-core.en.xml b/i18n/english/luasrc/i18n/admin-core.en.xml index fac415d4a..266f36258 100644 --- a/i18n/english/luasrc/i18n/admin-core.en.xml +++ b/i18n/english/luasrc/i18n/admin-core.en.xml @@ -166,6 +166,9 @@ max. DHCP-Leases additional hostfile query port +Enable TFTP-Server +TFTP-Server Root +Network Boot Image Switch Active Connections This page gives an overview over currently active network connections. diff --git a/i18n/german/luasrc/i18n/admin-core.de.lua b/i18n/german/luasrc/i18n/admin-core.de.lua index 8eca8b9b6..650cc06c0 100644 --- a/i18n/german/luasrc/i18n/admin-core.de.lua +++ b/i18n/german/luasrc/i18n/admin-core.de.lua @@ -180,6 +180,9 @@ dhcp_dnsmasq_resolvfile = 'Resolvdatei' dhcp_dnsmasq_resolvfile_desc = 'Lokale DNS-Datei' dhcp_dnsmasq_strictorder = 'Strikte Reihenfolge' dhcp_dnsmasq_strictorder_desc = 'DNS-Server werden strikt der Reihenfolge in der Resolvdatei nach abgefragt' +dhcp_dnsmasq_enabletftp = 'TFTP-Server aktivieren' +dhcp_dnsmasq_tftproot = 'TFTP-Server Wurzelverzeichnis' +dhcp_dnsmasq_dhcpboot = 'Netzwerk-Boot Abbild' file = 'Datei' frag = 'Frag.' frequency = 'Frequenz' diff --git a/i18n/german/luasrc/i18n/admin-core.de.xml b/i18n/german/luasrc/i18n/admin-core.de.xml index 139477b74..cab785265 100644 --- a/i18n/german/luasrc/i18n/admin-core.de.xml +++ b/i18n/german/luasrc/i18n/admin-core.de.xml @@ -184,6 +184,9 @@ Lokale DNS-Datei Strikte Reihenfolge DNS-Server werden strikt der Reihenfolge in der Resolvdatei nach abgefragt +TFTP-Server aktivieren +TFTP-Server Wurzelverzeichnis +Netzwerk-Boot Abbild Datei Frag. Frequenz 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