From f2f641f7bbfb2544d4910b3aa4ab78d812dbc65d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=96=8C?= <13731754667@163.com> Date: Wed, 8 May 2024 17:43:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=97=B6=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../luci-app-feishuvpn/luasrc/controller/feishuvpn.lua | 9 +++++++-- .../root/usr/libexec/istorec/feishuvpn.sh | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/applications/luci-app-feishuvpn/luasrc/controller/feishuvpn.lua b/applications/luci-app-feishuvpn/luasrc/controller/feishuvpn.lua index 5e97e7e..fcea53a 100755 --- a/applications/luci-app-feishuvpn/luasrc/controller/feishuvpn.lua +++ b/applications/luci-app-feishuvpn/luasrc/controller/feishuvpn.lua @@ -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 \ No newline at end of file diff --git a/applications/luci-app-feishuvpn/root/usr/libexec/istorec/feishuvpn.sh b/applications/luci-app-feishuvpn/root/usr/libexec/istorec/feishuvpn.sh index bb3346d..0ba2e80 100755 --- a/applications/luci-app-feishuvpn/root/usr/libexec/istorec/feishuvpn.sh +++ b/applications/luci-app-feishuvpn/root/usr/libexec/istorec/feishuvpn.sh @@ -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"