Update display.sh
This commit is contained in:
parent
dcc41d26ed
commit
cc474e2477
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue