applications/luci-ffwizard-leipzig: use luci.sys.hostname() to update hostname
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 1 Feb 2009 17:14:00 +0000 (17:14 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 1 Feb 2009 17:14:00 +0000 (17:14 +0000)
applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua

index b81e77d9d730c80a5d0fcfdc9bec7fd8cb1ea2fc..526913c07a9a165e3356a303ba78c104c63dbd08 100644 (file)
@@ -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