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
|
# 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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue