X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-ffwizard-leipzig%2Fluasrc%2Fmodel%2Fcbi%2Fffwizard.lua;h=526913c07a9a165e3356a303ba78c104c63dbd08;hp=b81e77d9d730c80a5d0fcfdc9bec7fd8cb1ea2fc;hb=08bcf69aac9c7429ad77f847a413d96b29265c52;hpb=4b9f7db1cea69524ca46098b446b0fe51e87091b;ds=sidebyside 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