From c497d79525b934ce99e1d4cfac7489ab0dcdc435 Mon Sep 17 00:00:00 2001 From: kiddin9 <48883331+kiddin9@users.noreply.github.com> Date: Sat, 10 Oct 2026 00:53:30 +0800 Subject: [PATCH] Update passwall2 --- luci-app-passwall2/root/etc/init.d/passwall2 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/luci-app-passwall2/root/etc/init.d/passwall2 b/luci-app-passwall2/root/etc/init.d/passwall2 index 09fa28d36..9c65f9267 100755 --- 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 -APP_FILE=${APP_PATH}/app.sh -LOCK_FILE=${LOCK_PATH}/${CONFIG}.lock +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