feat: Add console mode
This commit is contained in:
parent
1aa5028e39
commit
1a6f95f7cf
1 changed files with 6 additions and 1 deletions
|
|
@ -23,6 +23,10 @@ trap - ERR
|
|||
info "Booting $APP using $VERS..."
|
||||
[[ "$DEBUG" == [Yy1]* ]] && echo "Arguments: $ARGS" && echo
|
||||
|
||||
if [[ "$CONSOLE" == [Yy]* ]]; then
|
||||
exec qemu-system-x86_64 ${ARGS:+ $ARGS}
|
||||
fi
|
||||
|
||||
{ qemu-system-aarch64 ${ARGS:+ $ARGS} >"$QEMU_OUT" 2>"$QEMU_LOG"; rc=$?; } || :
|
||||
(( rc != 0 )) && error "$(<"$QEMU_LOG")" && exit 15
|
||||
|
||||
|
|
@ -31,4 +35,5 @@ tail -fn +0 "$QEMU_LOG" 2>/dev/null &
|
|||
cat "$QEMU_TERM" 2> /dev/null | tee "$QEMU_PTY" &
|
||||
wait $! || :
|
||||
|
||||
sleep 1 && finish 0
|
||||
sleep 1 & wait $!
|
||||
finish 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue