applications/luci-ffwizard-leipzig: use luci.sys.hostname() to update hostname
This commit is contained in:
parent
4b9f7db1ce
commit
08bcf69aac
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ function main.write(self, section, value)
|
||||||
uci:set("system", s['.name'], "hostname", new_hostname)
|
uci:set("system", s['.name'], "hostname", new_hostname)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
luci.fs.writefile( "/proc/sys/kernel/hostname", new_hostname.."\n" )
|
sys.hostname(new_hostname)
|
||||||
uci:save("system")
|
uci:save("system")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue