Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
projet-ter-m1-wic-openwrt
luci
Commits
fd75c2b7
Commit
fd75c2b7
authored
Sep 16, 2020
by
Florian Eckert
Browse files
luci-base: add default value options dhcp hostname
Signed-off-by:
Florian Eckert
<
fe@dev.tdt.de
>
parent
9da9777a
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js
View file @
fd75c2b7
...
...
@@ -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
)
{
...
...
Zhao ZHANG
@zozhang
mentioned in commit
509bf29c
·
Sep 20, 2020
mentioned in commit
509bf29c
mentioned in commit 509bf29cc9ae96350547946b207c0c0b5f61917f
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment