diff --git a/src/power.sh b/src/power.sh index cce28f2..5375e65 100644 --- a/src/power.sh +++ b/src/power.sh @@ -50,6 +50,8 @@ finish() { local pid local reason=$1 + touch "$QEMU_END" + if [ -f "$QEMU_PID" ]; then pid=$(<"$QEMU_PID")