diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-02-01 17:14:00 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-02-01 17:14:00 +0000 |
commit | 08bcf69aac9c7429ad77f847a413d96b29265c52 (patch) | |
tree | 29ea6cc58c70795920e5bc6a217c7bfab13e454d /applications/luci-ffwizard-leipzig/luasrc/model/cbi | |
parent | 4b9f7db1cea69524ca46098b446b0fe51e87091b (diff) |
applications/luci-ffwizard-leipzig: use luci.sys.hostname() to update hostname
Diffstat (limited to 'applications/luci-ffwizard-leipzig/luasrc/model/cbi')
-rw-r--r-- | applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua index b81e77d9d7..526913c07a 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 |