mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-11 21:27:51 +08:00
🛸 Sync 2026-10-06 21:21:05
This commit is contained in:
1 parent
b239ebf896
commit
3c831d5757
56 files changed
+5677
No files matched your search
+24
@@ -0,0 +1,24 @@
|
||||
local nixio = require "nixio"
|
||||
require "nixio.fs"
|
||||
-- Copyright (C) 2021 dz <dingzhong110@gmail.com>
|
||||
|
||||
module("luci.controller.easymesh", package.seeall)
|
||||
|
||||
local fs = require "nixio.fs"
|
||||
|
||||
function index()
|
||||
if not fs.access("/etc/config/easymesh") then
|
||||
return
|
||||
end
|
||||
|
||||
-- luci 23.05+ 已通过 menu.d JSON 注册菜单,无需重复
|
||||
if fs.access("/usr/share/luci/menu.d/luci-app-easymesh.json") then
|
||||
return
|
||||
end
|
||||
|
||||
local page
|
||||
|
||||
page = entry({"admin", "network", "easymesh"}, cbi("easymesh"), _("EASY MESH"), 60)
|
||||
page.dependent = true
|
||||
page.acl_depends = { "luci-app-easymesh" }
|
||||
end
|
||||
Reference in new issue
Block a user