From 66af3380ab0ce46f2375dce1518fea060796919a Mon Sep 17 00:00:00 2001 From: Bart Van Der Meerssche Date: Mon, 27 Sep 2010 20:21:52 +0200 Subject: [PATCH] openwrt: make hostname non-editable on the system page --- .../modules/admin-mini/luasrc/model/cbi/mini/system.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/mote/v1/openwrt/package/luci/modules/admin-mini/luasrc/model/cbi/mini/system.lua b/mote/v1/openwrt/package/luci/modules/admin-mini/luasrc/model/cbi/mini/system.lua index 3c2c933..bedd17c 100644 --- a/mote/v1/openwrt/package/luci/modules/admin-mini/luasrc/model/cbi/mini/system.lua +++ b/mote/v1/openwrt/package/luci/modules/admin-mini/luasrc/model/cbi/mini/system.lua @@ -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 --