KASM-2184 multi-gpu support

This commit is contained in:
matt 2021-12-30 17:05:20 +00:00
parent ef2669d4fc
commit 287a7a0d5d

View File

@ -5,9 +5,9 @@ echo -e "\n------------------ Xfce4 window manager startup------------------"
if [ "${START_XFCE4}" == "1" ] ; if [ "${START_XFCE4}" == "1" ] ;
then then
if [ -f /usr/bin/vglrun ] && [ -d /dev/dri ] && [ -O /dev/dri/card0 ] && [ -O /dev/dri/renderD128 ] ; then if [ -f /usr/bin/vglrun ] && [ ! -z "${KASM_EGL_CARD}" ] && [ ! -z "${KASM_RENDERD}" ] && [ -O "${KASM_RENDERD}" ] && [ -O "${KASM_EGL_CARD}" ] ; then
echo "Starting XFCE with VirtualGL" echo "Starting XFCE with VirtualGL"
DISPLAY=:1 /usr/bin/vglrun -d /dev/dri/card0 /usr/bin/startxfce4 --replace & DISPLAY=:1 /usr/bin/vglrun -d "${KASM_EGL_CARD}" /usr/bin/startxfce4 --replace &
else else
echo "Starting XFCE" echo "Starting XFCE"
/usr/bin/startxfce4 --replace & /usr/bin/startxfce4 --replace &