Update display.sh
This commit is contained in:
parent
3b1e34a41e
commit
8f4eea252f
1 changed files with 4 additions and 0 deletions
|
|
@ -6,6 +6,10 @@ set -Eeuo pipefail
|
||||||
: "${DISPLAY:="web"}" # Display type
|
: "${DISPLAY:="web"}" # Display type
|
||||||
: "${VGA:="virtio-gpu"}" # VGA adaptor
|
: "${VGA:="virtio-gpu"}" # VGA adaptor
|
||||||
|
|
||||||
|
if [[ "${BOOT_MODE,,}" == "windows" ]]; then
|
||||||
|
[[ "$VGA"" == "virtio-gpu" ]] && VGA="VGA"
|
||||||
|
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