#!/bin/sh BINARIES_DIR="${0%/*}/" # shellcheck disable=SC2164 cd "${BINARIES_DIR}" if [ "${1}" = "serial-only" ]; then EXTRA_ARGS='@SERIAL_ARGS@' else EXTRA_ARGS='@DEFAULT_ARGS@' fi export PATH="@HOST_DIR@/bin:${PATH}" exec @QEMU_CMD_LINE@ ${EXTRA_ARGS}