--- /dev/null
+#!/bin/bash -x
+
+TIZEN_SDK_INSTALL_PATH=`echo ${INSTALLED_PATH}`
+if [ -z ${TIZEN_SDK_INSTALL_PATH} ]
+then
+# echo "There is no TIZEN_SDK_PATH ENV" >> /tmp/emulator.log
+ exit 2;
+fi
+
+# run check-gl and show pop-up if using gallium driver.
+CHECK_GL_CMD=${TIZEN_SDK_INSTALL_PATH}/tools/emulator/bin/check-gl
+
+GL_WARNING_MSG="You are using invalid graphic card driver for the emulator.
+You have to use the lastest vendor-provided graphic card driver.
+
+For more information, see under ubuntu driver help page.
+https://help.ubuntu.com/community/BinaryDriverHowto/ "
+
+showGraphicDriverWarning()
+{
+ zenity --error --no-wrap --text="
+$GL_WARNING_MSG"
+}
+
+$CHECK_GL_CMD
+RET=$?
+echo "check_gl return : $RET"
+if [ "$RET" = "0" ] ; then
+ echo "check-gl ... OK."
+elif [ "$RET" = "2" ] ; then
+ # show warning dialog
+ echo "check-gl ... fail."
+ if [ "$INSTALLMANAGER_UI" = "GUI" ] ; then
+ showGraphicDriverWarning
+ else
+ echo "Warning : $GL_WARNING_MSG"
+ fi
+fi
--- /dev/null
+#!/bin/bash -x
+
+TIZEN_SDK_INSTALL_PATH=`echo ${INSTALLED_PATH}`
+if [ -z ${TIZEN_SDK_INSTALL_PATH} ]
+then
+# echo "There is no TIZEN_SDK_PATH ENV" >> /tmp/emulator.log
+ exit 2;
+fi
+
+# run check-gl and show pop-up if using gallium driver.
+CHECK_GL_CMD=${TIZEN_SDK_INSTALL_PATH}/tools/emulator/bin/check-gl
+
+GL_WARNING_MSG="You are using invalid graphic card driver for the emulator.
+You have to use the lastest vendor-provided graphic card driver.
+
+For more information, see under ubuntu driver help page.
+https://help.ubuntu.com/community/BinaryDriverHowto/ "
+
+showGraphicDriverWarning()
+{
+ zenity --error --no-wrap --text="
+$GL_WARNING_MSG"
+}
+
+$CHECK_GL_CMD
+RET=$?
+echo "check_gl return : $RET"
+if [ "$RET" = "0" ] ; then
+ echo "check-gl ... OK."
+elif [ "$RET" = "2" ] ; then
+ # show warning dialog
+ echo "check-gl ... fail."
+ if [ "$INSTALLMANAGER_UI" = "GUI" ] ; then
+ showGraphicDriverWarning
+ else
+ echo "Warning : $GL_WARNING_MSG"
+ fi
+fi
rm ${TMP_FILE}
-# run check-gl and show pop-up if using gallium driver.
-CHECK_GL_CMD=${TIZEN_SDK_INSTALL_PATH}/tools/emulator/bin/check-gl
-
-GL_WARNING_MSG="You are using invalid graphic card driver for the emulator.
-You have to use the lastest vendor-provided graphic card driver.
-
-For more information, see under ubuntu driver help page.
-https://help.ubuntu.com/community/BinaryDriverHowto/ "
-
-showGraphicDriverWarning()
-{
- zenity --error --no-wrap --text="
-$GL_WARNING_MSG"
-}
-
-$CHECK_GL_CMD
-RET=$?
-echo "check_gl return : $RET"
-if [ "$RET" = "0" ] ; then
- echo "check-gl ... OK."
-elif [ "$RET" = "2" ] ; then
- # show warning dialog
- echo "check-gl ... fail."
- if [ "$INSTALLMANAGER_UI" = "GUI" ] ; then
- showGraphicDriverWarning
- else
- echo "Warning : $GL_WARNING_MSG"
- fi
-fi
rm ${TMP_FILE}
-# run check-gl and show pop-up if using gallium driver.
-CHECK_GL_CMD=${TIZEN_SDK_INSTALL_PATH}/tools/emulator/bin/check-gl
-
-GL_WARNING_MSG="You are using invalid graphic card driver for the emulator.
-You have to use the lastest vendor-provided graphic card driver.
-
-For more information, see under ubuntu driver help page.
-https://help.ubuntu.com/community/BinaryDriverHowto/ "
-
-showGraphicDriverWarning()
-{
- zenity --error --no-wrap --text="
-$GL_WARNING_MSG"
-}
-
-$CHECK_GL_CMD
-RET=$?
-echo "check_gl return : $RET"
-if [ "$RET" = "0" ] ; then
- echo "check-gl ... OK."
-elif [ "$RET" = "2" ] ; then
- # show warning dialog
- echo "check-gl ... fail."
- if [ "$INSTALLMANAGER_UI" = "GUI" ] ; then
- showGraphicDriverWarning
- else
- echo "Warning : $GL_WARNING_MSG"
- fi
-fi