From 2e27c3afc6576224943130573f332b3c12baa27a Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 12 Jun 2024 04:40:25 +0200 Subject: [PATCH] Update display.sh --- src/display.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/display.sh b/src/display.sh index c19d50d..e5594b6 100644 --- a/src/display.sh +++ b/src/display.sh @@ -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