From ed587a05397bd796375237fd67c5e3d7ea3a59f6 Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 25 Jan 2024 02:36:20 +0100 Subject: [PATCH] Update power.sh --- src/power.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/power.sh b/src/power.sh index 5d67fbc..b1a6cc9 100644 --- a/src/power.sh +++ b/src/power.sh @@ -118,12 +118,12 @@ _graceful_shutdown() { if [ ! -f "$STORAGE/windows.boot" ] && [ -f "$QEMU_PTY" ]; then if ! grep -Fq "Windows Boot Manager" "$QEMU_PTY"; then - if ! grep -Fq "SeaBIOS" "$QEMU_PTY"; then + if [ ! -f "$STORAGE/windows.bios" ]; then info "Cannot send ACPI signal during Windows setup, aborting..." finish "$code" && return "$code" fi fi - if [ -f "$STORAGE/$BASE" ]; then + if [ -f "$STORAGE/$BASE" ] && [ ! -f "$STORAGE/windows.bios" ]; then rm -f "$STORAGE/$BASE" touch "$STORAGE/windows.boot" fi