Update display.sh

This commit is contained in:
Kroese 2024-06-12 04:40:25 +02:00 committed by GitHub
parent 360bf23417
commit 2e27c3afc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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