From 1dc910cf7541e0fb683e78322087f50ad4e5fd30 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 1 May 2024 11:19:05 +0200 Subject: [PATCH] fix: Timeout error --- src/power.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/power.sh b/src/power.sh index 1a4722c..c38b219 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