Skip to content

Commit

Permalink
fix: Fix issue #283
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese committed Jul 3, 2023
1 parent 2c66258 commit fe69b61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ trap 'error "Status $? while: ${BASH_COMMAND} (line $LINENO/$BASH_LINENO)"' ERR

STORAGE="/storage"
KERNEL=$(uname -r | cut -b 1)
MINOR=$(uname -r | cut -d '.' -f2)
ARCH=$(dpkg --print-architecture)
VERS=$(qemu-system-x86_64 --version | head -n 1 | cut -d '(' -f 1)

Expand Down Expand Up @@ -92,7 +93,7 @@ set -m
)
set +m

if (( KERNEL > 4 )); then
if (( KERNEL > 5 )) || ( (( KERNEL == 5 )) && (( MINOR > 2 )) ); then
pidwait -F "${_QEMU_PID}" & wait $!
else
tail --pid "$(cat "${_QEMU_PID}")" --follow /dev/null & wait $!
Expand Down

0 comments on commit fe69b61

Please sign in to comment.