Commit fd75c2b7 authored by Florian Eckert's avatar Florian Eckert
Browse files

luci-base: add default value options dhcp hostname

Signed-off-by: default avatarFlorian Eckert <>
parent 9da9777a
......@@ -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) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment