From 2f3098a18d7560cb6539df45af6870a95bee8a43 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sat, 22 Apr 2023 01:23:28 +0200 Subject: [PATCH] Support older kernels --- run/run.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/run/run.sh b/run/run.sh index 8cc935f..126aecb 100755 --- a/run/run.sh +++ b/run/run.sh @@ -3,7 +3,7 @@ set -eu # Docker environment variabeles -: ${URL:=''}. # URL of the PAT file +: ${URL:=''} # URL of the PAT file : ${DEBUG:=''}. # Enable debug mode : ${ALLOCATE:='Y'} # Preallocate diskspace : ${CPU_CORES:='1'} # Amount of CPU cores @@ -67,4 +67,8 @@ set -m ) set +m -pidwait -F "${_QEMU_PID}" & wait $! +if (( $(echo "$(uname -r | cut -d '.' -f 1-2) > 5.2" |bc -l) )); then + pidwait -F "${_QEMU_PID}" & wait $! +else + tail --pid "$(cat ${_QEMU_PID})" --follow /dev/null & wait $! +fi