update 2024-05-08 20:31:48

This commit is contained in:
kenzok8 2024-05-08 20:31:48 +08:00
parent ee4a6c7375
commit 94591ee525
2 changed files with 9 additions and 4 deletions

View File

@ -1,7 +1,12 @@
-- 定义luci.controller.feishuvpn模块
module("luci.controller.feishuvpn", package.seeall)
-- index函数配置FeiShuVpn的管理界面入口
function index()
-- 创建admin/services/feishuvpn目录下的入口重定向到config页面
-- dependent = true表示该入口依赖于其他服务
entry({"admin", "services", "feishuvpn"}, alias("admin", "services", "feishuvpn", "config"), _("FeiShuVpn"), 30).dependent = true
-- 创建admin/services/feishuvpn/config页面用于配置FeiShuVpn
entry({"admin", "services", "feishuvpn", "config"}, cbi("feishuvpn"))
end
end

View File

@ -27,8 +27,8 @@ do_install() {
--dns=127.0.0.1 \
--network=host "
local tz="`uci get system.@system[0].zonename | sed 's/ /_/g'`"
[ -z "$tz" ] || cmd="$cmd -e TZ=$tz"
# local tz="`uci get system.@system[0].zonename | sed 's/ /_/g'`"
# [ -z "$tz" ] || cmd="$cmd -e TZ=$tz"
cmd="$cmd -v /mnt:/mnt"
mountpoint -q /mnt && cmd="$cmd:rslave"