<%+header%> <% local jsonc = require "luci.jsonc" local features = { "_lua_force_array_" } local configs = {} if luci.sys.call("which ota >/dev/null 2>&1 && ota >/dev/null 2>&1") == 0 then features[#features+1] = "ota" end if luci.sys.call("[ -d /ext_overlay ] >/dev/null 2>&1") == 0 then features[#features+1] = "sandbox" end if luci.sys.call("[ -e /etc/init.d/dockerd ] >/dev/null 2>&1") == 0 then features[#features+1] = "dockerd" end if luci.sys.call("[ -e /etc/init.d/unishare ] >/dev/null 2>&1") == 0 then features[#features+1] = "unishare" end if luci.sys.call("/etc/init.d/ttyd running >/dev/null 2>&1") == 0 then features[#features+1] = "ttyd" local uci = require "luci.model.uci".cursor() local port = uci:get_first("ttyd", "ttyd", "port") or "7681" local ssl = uci:get_first("ttyd", "ttyd", "ssl") or "0" configs["ttyd"] = { port = tonumber(port), ssl = ssl == "1" } end -%>
<%+footer%>