🐤 Sync 2026-07-19 08:33:25

This commit is contained in:
github-actions[bot] 2026-07-19 08:33:25 +08:00
parent 0c46bce85a
commit 7974ca67ae
4 changed files with 14 additions and 3 deletions

View File

@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-passwall
PKG_VERSION:=26.7.16
PKG_RELEASE:=185
PKG_RELEASE:=186
PKG_PO_VERSION:=$(PKG_VERSION)
PKG_CONFIG_DEPENDS:= \

View File

@ -13,6 +13,11 @@ t.addremove = false
e = t:option(Flag, "enable", translate("Enable"))
e.rmempty = false
e = t:option(Value, "start_delay", translate("Delay Start"), translate("Units:seconds"))
e.default = "90"
e.datatype = "range(0,600)"
e.rmempty = false
local cfgname = "user"
t = m:section(TypedSection, cfgname, translate("Users Manager"))
t.anonymous = true

View File

@ -1,4 +1,4 @@
config global 'global'
option enable '0'
option start_delay '90'

View File

@ -3,7 +3,13 @@
START=99
boot_func() {
sleep 90
config_load passwall_server
config_get start_delay global start_delay 90
case "$start_delay" in
''|*[!0-9]*) start_delay=90 ;;
*) [ "$start_delay" -le 600 ] 2>/dev/null || start_delay=90 ;;
esac
[ "$start_delay" -gt 0 ] && sleep "$start_delay"
restart
}