%+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") %>
<%+footer%>