summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2020-09-16 17:16:39 +0200
committerFlorian Eckert <fe@dev.tdt.de>2020-09-16 17:19:50 +0200
commitfd75c2b7c5d9dc24e363715da713a886a70fd3a9 (patch)
treee970d5c602f6b5198838a0bcfa1261c9d1e80af7 /modules/luci-base
parent9da9777a94c65ec59d77ae1719fba7d583aae0e3 (diff)
luci-base: add default value options dhcp hostname
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'modules/luci-base')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js3
1 files changed, 3 insertions, 0 deletions
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) {