immortalwrt/package/ctcgfw/luci-app-mentohust/luasrc/controller/mentohust.lua
2020-03-04 11:30:53 +08:00

17 lines
630 B
Lua

module("luci.controller.mentohust", package.seeall)
function index()
if not nixio.fs.access("/etc/config/mentohust") then
return
end
if luci.sys.call("command -v mentohust >/dev/null") ~= 0 then
return
end
entry({"admin", "services", "mentohust"},
alias("admin", "services", "mentohust", "general"),
_("MentoHUST"), 10).dependent = true
entry({"admin", "services", "mentohust", "general"}, cbi("mentohust/general"), _("MentoHUST Settings"), 10).leaf = true
entry({"admin", "services", "mentohust", "log"}, cbi("mentohust/log"), _("MentoHUST LOG"), 20).leaf = true
end