From 86c432927ebe35b67e20eec52aa0f715598d1010 Mon Sep 17 00:00:00 2001 From: kiddin9 <48883331+kiddin9@users.noreply.github.com> Date: Sat, 10 Oct 2026 00:49:00 +0800 Subject: [PATCH] Update passwall --- luci-app-passwall/root/etc/init.d/passwall | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/luci-app-passwall/root/etc/init.d/passwall b/luci-app-passwall/root/etc/init.d/passwall index 931dc13d9..356502c07 100755 --- a/luci-app-passwall/root/etc/init.d/passwall +++ b/luci-app-passwall/root/etc/init.d/passwall @@ -3,10 +3,11 @@ START=99 STOP=15 -ROOT="${IPKG_INSTROOT:-}" -. "$ROOT/usr/share/passwall/utils.sh" -APP_FILE=${APP_PATH}/app.sh -LOCK_FILE=${LOCK_PATH}/${CONFIG}.lock +if [ -z "$IPKG_INSTROOT" ]; then + . /usr/share/passwall/utils.sh + APP_FILE=${APP_PATH}/app.sh + LOCK_FILE=${LOCK_PATH}/${CONFIG}.lock +fi set_lock() { mkdir -p "$LOCK_PATH" || return 1