diff --git a/luci-app-modem/luasrc/model/cbi/modem/config.lua b/luci-app-modem/luasrc/model/cbi/modem/config.lua index b8e99b6..baccaa0 100644 --- a/luci-app-modem/luasrc/model/cbi/modem/config.lua +++ b/luci-app-modem/luasrc/model/cbi/modem/config.lua @@ -18,9 +18,6 @@ enable = s:taboption("general", Flag, "enable", translate("Enable")) enable.default = "0" enable.rmempty = false --- 配置ID -uci:set('modem',arg[1],'id',arg[1]) - -- 备注 remarks = s:taboption("general", Value, "remarks", translate("Remarks")) remarks.rmempty = true @@ -68,6 +65,14 @@ getMobileNetwork() --------advanced-------- +-- 配置ID +id = s:taboption("advanced", Value, "id", translate("Config ID")) +id.default = arg[1] +id.rmempty = false +id.readonly = true +id.hidden = true +-- uci:set('modem',arg[1],'id',arg[1]) + -- 拨号工具 dial_tool = s:taboption("advanced", ListValue, "dial_tool", translate("Dial Tool")) dial_tool.description = translate("After switching the dialing tool, it may be necessary to restart the module or restart the router to recognize the module.")