--[[ LuCI - Lua Configuration Interface ]]-- local taskd = require "luci.model.tasks" local lxc-attach_model = require "luci.model.lxc-attach" local m, s, o m = taskd.docker_map("lxc-attach", "lxc-attach", "/usr/libexec/apps/lxc-attach/lxc-attach.sh", translate("lxc-attach"), translate("Access your LXC containers in Luci Terminal with lxc-attach.") .. translate("Official website:") .. ' https://lxc.com/') s = m:section(SimpleSection, translate("Service Status"), translate("lxc-attach status:")) s:append(Template("lxc-attach/status")) s = m:section(TypedSection, "lxc-attach", translate("Container"), translate("Enter the LXC container you want to access.")) s.addremove=false s.anonymous=true o = s:option(Value, "container", translate("container").."*") o.rmempty = false o.default = "ubuntu" -- Changed default to "ubuntu" o.datatype = "string" -- Changed datatype to "string" local blocks = lxc-attach_model.blocks() local home = lxc-attach_model.home() return m