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 = s:option(DummyValue, "_uptime", translate("m_i_uptime")).value =
luci.tools.webadmin.date_format(tonumber(uptime)) luci.tools.webadmin.date_format(tonumber(uptime))
hn = s:option(Value, "hostname", translate("hostname")) s:option(DummyValue, "_hostname", translate("hostname")).value =
luci.sys.hostname(value)
function hn.write(self, section, value)
Value.write(self, section, value)
luci.sys.hostname(value)
end
-- Wifi Data init -- -- Wifi Data init --