From beec7688dbe44c472eb482e2937b911129b67aeb Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 26 May 2024 12:54:47 +0200 Subject: [PATCH] Update power.sh --- src/power.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/power.sh b/src/power.sh index 7382b94..6540a56 100644 --- a/src/power.sh +++ b/src/power.sh @@ -43,7 +43,10 @@ boot() { error "Timeout while waiting for QEMU to boot the machine!" - finish 33 + local pid + pid=$(<"$QEMU_PID") + { kill -15 "$pid" || true; } 2>/dev/null + return 0 }