From: Florian Eckert Date: Wed, 16 Sep 2020 15:16:39 +0000 (+0200) Subject: luci-base: add default value options dhcp hostname X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fd75c2b7c5d9dc24e363715da713a886a70fd3a9;p=project%2Fluci.git luci-base: add default value options dhcp hostname Signed-off-by: Florian Eckert --- diff --git a/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js b/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js index efdb818c45..28f06ecb8c 100644 --- a/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js +++ b/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js @@ -20,6 +20,9 @@ return network.registerProtocol('dhcp', { var dev = this.getL2Device() || this.getDevice(), o; o = s.taboption('general', form.Value, 'hostname', _('Hostname to send when requesting DHCP')); + o.default = ''; + o.value('', 'Send the hostname of this device'); + o.value('*', 'Do not send a hostname'); o.datatype = 'or(hostname, "*")'; o.load = function(section_id) { return callFileRead('/proc/sys/kernel/hostname').then(L.bind(function(hostname) {