From fd75c2b7c5d9dc24e363715da713a886a70fd3a9 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 16 Sep 2020 17:16:39 +0200 Subject: [PATCH] luci-base: add default value options dhcp hostname Signed-off-by: Florian Eckert --- .../luci-base/htdocs/luci-static/resources/protocol/dhcp.js | 3 +++ 1 file changed, 3 insertions(+) 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) { -- 2.30.2