<%# LuCI - Lua Configuration Interface Copyright 2008-2009 Steven Barth Copyright 2008-2009 Jo-Philipp Wich Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ -%> <%- require "bit" require "luci.sys" require "luci.tools.webadmin" require "nixio.fs" require "luci.util" local style = true -%> <%+header%>

<%:USB Devices%>

<%:All connected devices (including system hubs)%>
<% luci.sys.connected(function(e) %> <% style = not style; end) %>
<%:Bus%> <%:Device%> <%:VendorID%>:<%:ProdID%> <%:Product Info%>
<%=e["busnum"]%> <%=e["devnum"]%> <%=e["idVendorProd"]%> <%=e["Product Info"]%>

<%:Mounted USB / SCSI devices%>
<% luci.sys.mounted(function(e) %> <% style = not style; end) %>
<%:Device Path%> <%:Mount Point%> <%:File System%> <%:Read/Write%> <%:Action%>
<%=e["devpath"]%> <%=e["mountpoint"]%> <%=e["fs"]%> <%=e["rw"]%> ')" />

<%+footer%>