23231180 T8M8:Need ILOM VNC support for T8 and M8 s12_109
authorPhi Tran <Phi.N.Tran@Oracle.COM>
Fri, 16 Sep 2016 19:01:23 -0700
changeset 1658 412cac9a8866
parent 1656 86e624447efe
child 1659 13e41543349a
23231180 T8M8:Need ILOM VNC support for T8 and M8
open-src/xserver/xserver-common/Xserver
--- 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}