--- a/open-src/xserver/xserver-common/Xserver Wed Sep 07 12:44:15 2016 -0700
+++ b/open-src/xserver/xserver-common/Xserver Fri Sep 16 19:01:23 2016 -0700
@@ -49,6 +49,7 @@
XSERVER="/usr/bin/Xorg"
CONSOLE=""
CONFIG_FILE=""
+MDESC="/dev/mdesc"
while getopts :c: opt; do
@@ -134,6 +135,13 @@
fi
fi
+if [[ ("${ISVNCPLATFORM}" != "true") && (-e "${MDESC}") ]]; then
+ strings "${MDESC}" | fgrep vnc-supported >/dev/null
+ if [[ $? -eq 0 ]] ; then
+ ISVNCPLATFORM=true
+ fi
+fi
+
# Check if this is a platform that should use Xvnc or Xorg.
if [[ "${XSERVER}" == "/usr/bin/Xorg" ]] ; then
# Configure x11-server to run Xvnc instead of Xorg for ${VNCPLATFORM}