Skip to content

Commit

Permalink
Update display.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Jun 12, 2024
1 parent 360bf23 commit 2e27c3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/display.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ set -Eeuo pipefail
: "${VGA:=""}" # VGA adaptor
: "${DISPLAY:="web"}" # Display type

if [[ "${BOOT_MODE:-}" != "windows" ]]; then
[ -z "$VGA" ] && VGA="virtio-gpu"
else
if [[ "${BOOT_MODE:-}" == "windows"* ]]; then
[ -z "$VGA" ] && VGA="ramfb"
else
[ -z "$VGA" ] && VGA="virtio-gpu"
fi

case "${DISPLAY,,}" in
Expand Down

0 comments on commit 2e27c3a

Please sign in to comment.