mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-11 21:27:51 +08:00
🎉 Sync 2026-11-08 01:01:38
This commit is contained in:
1 parent
f7911ea0fb
commit
3d26c9667a
57 files changed
+4016
-1243
No files matched your search
@@ -1,24 +1,28 @@
|
||||
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
|
||||
if not nixio.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 = entry({"admin", "network", "easymesh"},
|
||||
firstchild(), _("EasyMesh"), 60)
|
||||
page.dependent = false
|
||||
page.acl_depends = { "luci-app-easymesh" }
|
||||
|
||||
local page
|
||||
entry({"admin", "network", "easymesh", "dashboard"},
|
||||
cbi("easymesh/dashboard"), _("Dashboard"), 5)
|
||||
|
||||
page = entry({"admin", "network", "easymesh"}, cbi("easymesh"), _("EASY MESH"), 60)
|
||||
page.dependent = true
|
||||
page.acl_depends = { "luci-app-easymesh" }
|
||||
entry({"admin", "network", "easymesh", "config"},
|
||||
cbi("easymesh/config"), _("Settings"), 10)
|
||||
|
||||
entry({"admin", "network", "easymesh", "ap_mode"},
|
||||
cbi("easymesh/ap_mode"), _("AP Mode"), 15)
|
||||
|
||||
entry({"admin", "network", "easymesh", "client_wifi"},
|
||||
cbi("easymesh/client_wifi"), _("Client WiFi"), 20)
|
||||
|
||||
entry({"admin", "network", "easymesh", "quick"},
|
||||
cbi("easymesh/quick_setup"), _("Quick Setup"), 25)
|
||||
|
||||
entry({"admin", "network", "easymesh", "vlans"},
|
||||
cbi("easymesh/vlans"), _("VLANs"), 30)
|
||||
end
|
||||
Reference in new issue
Block a user