From 1cd8fb8c807c1e2bf8d7c07d107bab199aa8a6aa Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 29 Apr 2024 18:19:34 +0200 Subject: [PATCH] Update power.sh --- src/power.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/power.sh b/src/power.sh index 7326f86..0b500fc 100644 --- a/src/power.sh +++ b/src/power.sh @@ -23,6 +23,21 @@ _trap() { done } +boot() { + + [ -f "$QEMU_END" ] && return 0 + + if [ -s "$QEMU_PTY" ]; then + if grep -iq " hard" "$QEMU_PTY"; then + info "Windows started succesfully, visit http://localhost:8006/ to view the screen..." + return 0 + fi + fi + + error "Timeout while waiting for QEMU to boot the machine!" + return 0 +} + ready() { [ -f "$STORAGE/windows.boot" ] && return 0