% local util = require "luci.util" local function command(action) return util.trim(util.exec("/usr/libexec/istorec/dsh.sh " .. action .. " 2>/dev/null")) end local state = command("status") local running = state == "running" local health = command("health") local ready = running and health == "healthy" local profile = command("profile") local image = command("image") local port = command("port") local key_status = command("key-status") -%>
<%=profile == "advanced" and translate("Open the browser-enhanced workbench in a new window. Its Chromium desktop and Browser Use tools share the same protected DSH session.") or translate("Open the workbench in a new window. DSH uses its own administrator-key login and keeps models, sessions and tools inside the workbench.")%>
<%=util.pcdata(image)%><% end %>