<% local uci = require "luci.model.uci".cursor() local ntm = require "luci.model.network" local firmwareVersion_sha = luci.util.trim(luci.util.exec("cat /etc/version | grep build")) local firmwareVersion = luci.util.trim(luci.util.exec("cat /etc/version | grep Firmware |awk '{printf $4}'")) local ICON_LOGO = uci:get('functionlist','vendorlist','ICON_LOGO') or "/Netgear_logo.png" local BANNER_LOGO = uci:get('functionlist','vendorlist','BANNER_LOGO') or "/banner_logo.png" local PRODUCT_LOGO = "/product_logo.png" local modelname = uci:get("sysProductInfo","model","modelName") local description = uci:get("sysProductInfo","model","description") local port = luci.util.trim(luci.util.exec("remote_access -p")) local comment = luci.util.trim(luci.util.exec("cat /overlay/insight/support/comment.txt")) local remoteIsRunning = luci.util.exec("ps -w | grep \"remote_access\" | grep -v \"grep\" | awk \'\{printf $1\}\'") %>
<%=modelname%> - <%=description%>


<% if remoteIsRunning ~= nill and remoteIsRunning ~= "" then %> <% else %> <% end %>
<%:Support%>
- <%:Port%>
- <%:Port%>
- <%:Comment%>