git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
4b9f7db
)
applications/luci-ffwizard-leipzig: use luci.sys.hostname() to update hostname
author
Jo-Philipp Wich
<redacted>
Sun, 1 Feb 2009 17:14:00 +0000
(17:14 +0000)
committer
Jo-Philipp Wich
<redacted>
Sun, 1 Feb 2009 17:14:00 +0000
(17:14 +0000)
applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
patch
|
blob
|
history
diff --git
a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
index b81e77d9d730c80a5d0fcfdc9bec7fd8cb1ea2fc..526913c07a9a165e3356a303ba78c104c63dbd08 100644
(file)
--- 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
git clone https://git.99rst.org/PROJECT