Unverified Commit 9760706e authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Update entry.sh

parent d99f6916
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -36,9 +36,13 @@ info "Booting ${APP}${BOOT_DESC} using QEMU v$version..."

if [ ! -t 1 ] || [ ! -c /dev/tty ]; then
  qemu-system-x86_64 ${ARGS:+ $ARGS} &
else
  if [[ "$DEBUG" != [Yy1]* ]]; then
    qemu-system-x86_64 ${ARGS:+ $ARGS} </dev/tty >/dev/tty &
  else
    setsid qemu-system-x86_64 ${ARGS:+ $ARGS} >/dev/tty &
  fi
fi

rc=0
wait $! || rc=$?