From 5e2cb9bb6fdc4c5580672e87eba06ef7c5cf1761 Mon Sep 17 00:00:00 2001 From: Ing Date: Mon, 17 Mar 2025 19:36:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20boot.sh=20=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E8=8F=9C=E5=8D=95=E9=94=81=E5=AE=9A=E6=A3=80=E6=9F=A5?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/initrd/opt/rr/boot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/initrd/opt/rr/boot.sh b/files/initrd/opt/rr/boot.sh index 2ae6a031..a15bb4f1 100755 --- a/files/initrd/opt/rr/boot.sh +++ b/files/initrd/opt/rr/boot.sh @@ -302,7 +302,7 @@ function _bootwait() { rm -f WB WC return 1 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\033[1;33m%s\033[0m\n" "$(TEXT "Menu opened and booting is interrupted.")" rm -f WB WC