修复 boot.sh 中的菜单锁定检查逻辑

This commit is contained in:
Ing 2025-03-17 19:36:42 +08:00
parent e6c78ce293
commit 5e2cb9bb6f

View File

@ -302,7 +302,7 @@ function _bootwait() {
rm -f WB WC rm -f WB WC
return 1 return 1
fi fi
if false && [ -f "${TMP_PATH}/menu.lock" ]; then if ! ps -p "${PPID}" -o cmd | grep -q "menu.sh" && [ -f "${TMP_PATH}/menu.lock" ]; then
printf "\r%$((${#MSG} * 2))s\n" " " printf "\r%$((${#MSG} * 2))s\n" " "
printf "\r\033[1;33m%s\033[0m\n" "$(TEXT "Menu opened and booting is interrupted.")" printf "\r\033[1;33m%s\033[0m\n" "$(TEXT "Menu opened and booting is interrupted.")"
rm -f WB WC rm -f WB WC