openwrt: make hostname non-editable on the system page

This commit is contained in:
Bart Van Der Meerssche 2010-09-27 20:21:52 +02:00
parent d132f79529
commit 66af3380ab
1 changed files with 2 additions and 6 deletions

View File

@ -52,12 +52,8 @@ s:option(DummyValue, "_systime", translate("m_i_systemtime")).value =
s:option(DummyValue, "_uptime", translate("m_i_uptime")).value =
luci.tools.webadmin.date_format(tonumber(uptime))
hn = s:option(Value, "hostname", translate("hostname"))
function hn.write(self, section, value)
Value.write(self, section, value)
luci.sys.hostname(value)
end
s:option(DummyValue, "_hostname", translate("hostname")).value =
luci.sys.hostname(value)
-- Wifi Data init --