Update luci-app-passwall2.patch

This commit is contained in:
kiddin9 authored and GitHub committed 2026-10-10 00:52:19 +08:00
1 parent 86c432927e
commit 095df86d1a
1 file changed
+16
@@ -1,3 +1,19 @@
--- a/luci-app-passwall2/root/etc/init.d/passwall2
+++ b/luci-app-passwall2/root/etc/init.d/passwall2
@@ -3,9 +3,11 @@
START=99
STOP=15
-. $IPKG_INSTROOT/usr/share/passwall2/utils.sh
+if [ -z "$IPKG_INSTROOT" ]; then
+. /usr/share/passwall2/utils.sh
APP_FILE=${APP_PATH}/app.sh
LOCK_FILE=${LOCK_PATH}/${CONFIG}.lock
+fi
set_lock() {
[ ! -d "$LOCK_PATH" ] && mkdir -p $LOCK_PATH
--- a/luci-app-passwall2/Makefile
+++ b/luci-app-passwall2/Makefile
@@ -31,7 +31,26 @@ LUCI_PKGARCH:=all