<%+header%> <% local cnt = 0 local tt = {} os.execute("cat /sys/kernel/debug/usb/devices > /tmp/modstat 2>&1") local file = io.open("/tmp/modstat", "r") repeat local line = file:read("*line") if line == nil then break end if string.len(line) < 3 then line = "********************************************************************************************************" end tt[cnt] = line cnt = cnt + 1 until 1 == 0 cnt = cnt - 1 file:close() os.execute("/usr/lib/rooter/luci/luaops.sh delete /tmp/modstat") %>

<%:通信模块调试信息%>

<%:自动化AT指令调试日志%>
<%:设备信息%> <% for i=1,cnt do s, e = string.find(tt[i], "供应商") s1, e = string.find(tt[i], "品牌") s2, e = string.find(tt[i], "模块型号") if s ~= nil or s1 ~= nil or s2 ~= nil then %> <% else %> <% end end %>
<%=tt[i]%>
<%=tt[i]%>


<%+footer%>