Update display.sh

This commit is contained in:
Kroese 2024-02-05 14:04:45 +01:00 committed by GitHub
parent dcc41d26ed
commit cc474e2477
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,11 +3,13 @@ set -Eeuo pipefail
# Docker environment variables # Docker environment variables
: "${VGA:=""}" # VGA adaptor
: "${DISPLAY:="web"}" # Display type : "${DISPLAY:="web"}" # Display type
: "${VGA:="virtio-gpu"}" # VGA adaptor
if [[ "${BOOT_MODE,,}" == "windows" ]]; then if [[ "${BOOT_MODE,,}" == "windows" ]]; then
[[ "$VGA" == "virtio-gpu" ]] && VGA="ramfb" [ -z "$VGA" ] && VGA="ramfb"
else
[ -z "$VGA" ] && VGA="virtio-gpu"
fi fi
case "${DISPLAY,,}" in case "${DISPLAY,,}" in