mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
修复 boot.sh 中的菜单锁定检查逻辑
This commit is contained in:
parent
e6c78ce293
commit
5e2cb9bb6f
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user