Update 'luasrc/controller/lxc-attach.lua'
parent
699de6a381
commit
bf3f6c2b4b
@ -0,0 +1,15 @@
|
|||||||
|
|
||||||
|
module("luci.controller.lxc-attach", package.seeall)
|
||||||
|
|
||||||
|
function index()
|
||||||
|
entry({"admin", "apps"}, firstchild(), _("apps") , 45).dependent = false
|
||||||
|
if not nixio.fs.access("/etc/config/lxc-attach") then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
local page = entry({"admin", "apps", "lxc-attach"}, cbi("lxc-attach"), _("lxc-attach"))
|
||||||
|
page.order = 10
|
||||||
|
page.dependent = true
|
||||||
|
page.acl_depends = { "luci-app-lxc-attach" }
|
||||||
|
entry({"admin","apps","lxc-attach","status"},call("act_status")).leaf=true
|
||||||
|
end
|
@ -1,15 +0,0 @@
|
|||||||
|
|
||||||
module("luci.controller.lxdterm", package.seeall)
|
|
||||||
|
|
||||||
function index()
|
|
||||||
entry({"admin", "apps"}, firstchild(), _("apps") , 45).dependent = false
|
|
||||||
if not nixio.fs.access("/etc/config/lxdterm") then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local page = entry({"admin", "apps", "lxdterm"}, cbi("lxdterm"), _("lxdterm"))
|
|
||||||
page.order = 10
|
|
||||||
page.dependent = true
|
|
||||||
page.acl_depends = { "luci-app-lxdterm" }
|
|
||||||
entry({"admin","lxc","lxdterm","status"},call("act_status")).leaf=true
|
|
||||||
end
|
|
Loading…
Reference in New Issue