From b58bfa8416c9ebd09c0e78650bc4b45d4da339d2 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 10 May 2024 17:25:05 +0200 Subject: [PATCH] Update power.sh --- src/power.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/power.sh b/src/power.sh index 3fc8923..e21f37c 100644 --- a/src/power.sh +++ b/src/power.sh @@ -29,8 +29,10 @@ boot() { if [ -s "$QEMU_PTY" ]; then if [ "$(stat -c%s "$QEMU_PTY")" -gt 7 ]; then - info "Windows started succesfully, visit http://localhost:8006/ to view the screen..." - return 0 + if ! grep -Fq "BOOTMGR is missing" "$QEMU_PTY"; then + info "Windows started succesfully, visit http://localhost:8006/ to view the screen..." + return 0 + fi fi fi