From cc474e24777dec88ed72b9354483ecd221af6509 Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 5 Feb 2024 14:04:45 +0100 Subject: [PATCH] Update display.sh --- src/display.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/display.sh b/src/display.sh index d1ab516..abe7509 100644 --- a/src/display.sh +++ b/src/display.sh @@ -3,11 +3,13 @@ set -Eeuo pipefail # Docker environment variables +: "${VGA:=""}" # VGA adaptor : "${DISPLAY:="web"}" # Display type -: "${VGA:="virtio-gpu"}" # VGA adaptor if [[ "${BOOT_MODE,,}" == "windows" ]]; then - [[ "$VGA" == "virtio-gpu" ]] && VGA="ramfb" + [ -z "$VGA" ] && VGA="ramfb" +else + [ -z "$VGA" ] && VGA="virtio-gpu" fi case "${DISPLAY,,}" in