From 460780358a5b9433d1e442c40edd41651c9043d3 Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 17 Apr 2023 23:20:37 +0200 Subject: [PATCH] Sync --- run/run.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/run/run.sh b/run/run.sh index 6f2ae4c..45a349b 100755 --- a/run/run.sh +++ b/run/run.sh @@ -5,6 +5,7 @@ echo "Starting QEMU for Docker v${VERSION}..." STORAGE="/storage" [ ! -d "$STORAGE" ] && echo "Storage folder (${STORAGE}) not found!" && exit 69 +[ ! -f "/run/run.sh" ] && echo "Script must run inside Docker container!" && exit 60 if [ -f "$STORAGE/boot.img" ]; then . /run/install.sh @@ -40,7 +41,5 @@ set -m ) set +m -# Since we have to start the process with -m, we need to poll every intervall if it's still running -while [ -d "/proc/$(cat ${_QEMU_PID})" ]; do - snore 1 -done +pidwait -F "${_QEMU_PID}" & +wait $!