luci: fix boot when only use socks

This commit is contained in:
xiaorouji 2023-02-16 12:45:22 +08:00 committed by sbwml
parent 22d5836974
commit debd3073e8
2 changed files with 8 additions and 11 deletions

View File

@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-passwall PKG_NAME:=luci-app-passwall
PKG_VERSION:=4.59 PKG_VERSION:=4.59
PKG_RELEASE:=1 PKG_RELEASE:=2
PKG_CONFIG_DEPENDS:= \ PKG_CONFIG_DEPENDS:= \
CONFIG_PACKAGE_$(PKG_NAME)_Iptables_Transparent_Proxy \ CONFIG_PACKAGE_$(PKG_NAME)_Iptables_Transparent_Proxy \

View File

@ -1304,7 +1304,6 @@ kill_all() {
} }
boot() { boot() {
[ "$ENABLED" == 1 ] && {
local delay=$(config_t_get global_delay start_delay 1) local delay=$(config_t_get global_delay start_delay 1)
if [ "$delay" -gt 0 ]; then if [ "$delay" -gt 0 ]; then
echolog "执行启动延时 $delay 秒后再启动!" echolog "执行启动延时 $delay 秒后再启动!"
@ -1313,8 +1312,6 @@ boot() {
start start
fi fi
} }
return 0
}
start() { start() {
ulimit -n 65535 ulimit -n 65535