From bf3f6c2b4bae6d562b508f139e663297187db3a8 Mon Sep 17 00:00:00 2001 From: ben Date: Sun, 3 Sep 2023 01:25:12 +0000 Subject: [PATCH] Update 'luasrc/controller/lxc-attach.lua' --- luasrc/controller/lxc-attach.lua | 15 +++++++++++++++ luasrc/controller/lxdterm.lua | 15 --------------- 2 files changed, 15 insertions(+), 15 deletions(-) create mode 100755 luasrc/controller/lxc-attach.lua delete mode 100755 luasrc/controller/lxdterm.lua diff --git a/luasrc/controller/lxc-attach.lua b/luasrc/controller/lxc-attach.lua new file mode 100755 index 0000000..f8c4e02 --- /dev/null +++ b/luasrc/controller/lxc-attach.lua @@ -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 diff --git a/luasrc/controller/lxdterm.lua b/luasrc/controller/lxdterm.lua deleted file mode 100755 index b9f3aac..0000000 --- a/luasrc/controller/lxdterm.lua +++ /dev/null @@ -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