From 4021b30b16441d1697609a224bf5fddf15de1b40 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 1 May 2024 11:22:24 +0200 Subject: [PATCH] fix: Timeout detection --- src/power.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/power.sh b/src/power.sh index 0b500fc..68afd8f 100644 --- a/src/power.sh +++ b/src/power.sh @@ -28,7 +28,7 @@ boot() { [ -f "$QEMU_END" ] && return 0 if [ -s "$QEMU_PTY" ]; then - if grep -iq " hard" "$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 fi