Update display.sh
This commit is contained in:
parent
984f571467
commit
78dae18b4b
1 changed files with 4 additions and 5 deletions
|
|
@ -4,21 +4,20 @@ set -Eeuo pipefail
|
||||||
# Docker environment variables
|
# Docker environment variables
|
||||||
|
|
||||||
: "${GPU:="N"}" # GPU passthrough
|
: "${GPU:="N"}" # GPU passthrough
|
||||||
: "${VGA:="std"}" # VGA adaptor
|
|
||||||
: "${DISPLAY:="web"}" # Display type
|
: "${DISPLAY:="web"}" # Display type
|
||||||
|
|
||||||
case "${DISPLAY,,}" in
|
case "${DISPLAY,,}" in
|
||||||
vnc)
|
vnc)
|
||||||
DISPLAY_OPTS="-display vnc=:0 -vga $VGA"
|
DISPLAY_OPTS="-display vnc=:0"
|
||||||
;;
|
;;
|
||||||
web)
|
web)
|
||||||
DISPLAY_OPTS="-display vnc=:0,websocket=5700 -vga $VGA"
|
DISPLAY_OPTS="-display vnc=:0,websocket=5700"
|
||||||
;;
|
;;
|
||||||
none)
|
none)
|
||||||
DISPLAY_OPTS="-display none -vga none"
|
DISPLAY_OPTS="-display none"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
DISPLAY_OPTS="-display $DISPLAY -vga $VGA"
|
DISPLAY_OPTS="-display $DISPLAY"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue