From: Jo-Philipp Wich Date: Sun, 1 Feb 2009 17:14:00 +0000 (+0000) Subject: applications/luci-ffwizard-leipzig: use luci.sys.hostname() to update hostname X-Git-Tag: 0.9.0~691 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=08bcf69aac9c7429ad77f847a413d96b29265c52 applications/luci-ffwizard-leipzig: use luci.sys.hostname() to update hostname --- diff --git a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua index b81e77d9d..526913c07 100644 --- 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