Update display.sh
This commit is contained in:
parent
e04facea53
commit
6ee5b0fc67
1 changed files with 7 additions and 1 deletions
|
|
@ -3,9 +3,15 @@ set -Eeuo pipefail
|
||||||
|
|
||||||
# Docker environment variables
|
# Docker environment variables
|
||||||
|
|
||||||
: "${VGA:="ramfb"}" # VGA adaptor
|
: "${VGA:=""}" # VGA adaptor
|
||||||
: "${DISPLAY:="web"}" # Display type
|
: "${DISPLAY:="web"}" # Display type
|
||||||
|
|
||||||
|
if [[ "${BOOT_MODE:-}" != "windows" ]]; then
|
||||||
|
[ -z "$VGA" ] && VGA="virtio-gpu"
|
||||||
|
else
|
||||||
|
[ -z "$VGA" ] && VGA="ramfb"
|
||||||
|
fi
|
||||||
|
|
||||||
case "${DISPLAY,,}" in
|
case "${DISPLAY,,}" in
|
||||||
vnc)
|
vnc)
|
||||||
DISPLAY_OPTS="-display vnc=:0 -device $VGA"
|
DISPLAY_OPTS="-display vnc=:0 -device $VGA"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue