projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
applications/luci-ffwizard-leipzig: use luci.sys.hostname() to update hostname
[project/luci.git]
/
applications
/
luci-ffwizard-leipzig
/
luasrc
/
model
/
cbi
/
ffwizard.lua
diff --git
a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
index b81e77d9d730c80a5d0fcfdc9bec7fd8cb1ea2fc..526913c07a9a165e3356a303ba78c104c63dbd08 100644
(file)
--- a/
applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
+++ b/
applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
@@
-245,7
+245,7
@@
function main.write(self, section, value)
uci:set("system", s['.name'], "hostname", new_hostname)
end)
-
luci.fs.writefile( "/proc/sys/kernel/hostname", new_hostname.."\n"
)
+
sys.hostname(new_hostname
)
uci:save("system")
end
end