Skip to content

Commit

Permalink
Add host model environment variable
Browse files Browse the repository at this point in the history
Add host model environment variable
  • Loading branch information
kroese committed May 29, 2023
2 parents aaba184 + 7c85e35 commit 8c3d327
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions run/serial.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ set -Eeuo pipefail
: ${HOST_DEBUG:=''}
: ${HOST_SERIAL:=''}
: ${GUEST_SERIAL:=''}
: ${HOST_MODEL:=''}
: ${HOST_VERSION:=''}
: ${HOST_TIMESTAMP:=''}

Expand All @@ -32,6 +33,7 @@ HOST_ARGS+=("-cpu_arch=${HOST_CPU}")

[ -n "$HOST_MAC" ] && HOST_ARGS+=("-mac=${HOST_MAC//:/-}")
[ -n "$HOST_BUILD" ] && HOST_ARGS+=("-build=${HOST_BUILD}")
[ -n "$HOST_MODEL" ] && HOST_ARGS+=("-model=${HOST_MODEL}")
[ -n "$HOST_SERIAL" ] && HOST_ARGS+=("-hostsn=${HOST_SERIAL}")
[ -n "$GUEST_SERIAL" ] && HOST_ARGS+=("-guestsn=${GUEST_SERIAL}")
[ -n "$HOST_VERSION" ] && HOST_ARGS+=("-version=${HOST_VERSION}")
Expand Down

0 comments on commit 8c3d327

Please sign in to comment.