diff --git a/.github/diy/patches/luci-app-passwall2.patch b/.github/diy/patches/luci-app-passwall2.patch index 8ea3eddb3..0dbce6329 100644 --- a/.github/diy/patches/luci-app-passwall2.patch +++ b/.github/diy/patches/luci-app-passwall2.patch @@ -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