%+header%> <% local uci = require("luci.model.uci").cursor() local net = require "luci.model.network".init() local fs = require "nixio.fs" local sys = require "luci.sys" local ut = require "luci.util" local ifaces = sys.net:devices() menuentry = uci:get("openmptcprouter","settings","menu") or "openmptcprouter" function device_notvirtual(dev) for _, iface in ipairs(net:get_networks()) do local ifacen = iface:name() local ifacename = uci:get("network",ifacen,"ifname") local ifacetype = uci:get("network",ifacen,"type") or "" local ifaceproto = uci:get("network",ifacen,"proto") or "" --if ifacename == dev and (ifacetype == "macvlan" or ifacetype == "bridge" or ifaceproto == "6in4") then if ifacename == dev and (ifacetype == "macvlan" or ifaceproto == "6in4") then return false end end return true end function splitstring(inputstr, sep) if inputstr == nil then return "" end if sep == nil then sep = "%s" end local t={} for str in string.gmatch(inputstr, "([^"..sep.."]+)") do table.insert(t, str) end return t end %> <% if stderr and #stderr > 0 then %>
<%=pcdata(stderr)%><% end %> <%+footer%>