YaGL: Modified the startup script 35/32135/2 archives/tizen_20150513
authorjinhyung.jo <jinhyung.jo@samsung.com>
Tue, 16 Dec 2014 05:49:24 +0000 (14:49 +0900)
committerjinhyung.jo <jinhyung.jo@samsung.com>
Tue, 16 Dec 2014 06:31:22 +0000 (15:31 +0900)
Checks the device node instead of the kernel command.

Change-Id: I69aa6e322eb45d22454b56199eb12ff661c16439
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
packaging/emul-opengl-yagl.service
packaging/virtgl.sh

index 9f716a3f474bc0808e64f6e28c71e941c68ead55..5682ae3567a036bea0a2f3b001de47c4abd324df 100644 (file)
@@ -3,7 +3,6 @@ Description=OpenGL "YAGL"
 DefaultDependencies=no
 After=emul-opengl-mode.service
 Before=basic.target
-ConditionKernelCommandLine=yagl=1
 
 [Service]
 Type=oneshot
index 25521ee56d7e9569b895378a92444ed3a0ef62a9..6e62868fe5ae1e710e5e79597508e824fa8f32b2 100755 (executable)
@@ -1,7 +1,7 @@
  #!/bin/sh
+
 echo -e "[${_G} Opengl-es acceleration module setting. ${C_}]"
-if grep "yagl=1" /proc/cmdline ; then
+if [ -e /dev/yagl ] ; then
         echo -e "[${_G} Emulator support gles hw acceleration. ${C_}]"
         echo -e "[${_G} Change permission of /dev/yagl. ${C_}]"
         chmod 666 /dev/yagl
@@ -16,7 +16,7 @@ if grep "yagl=1" /proc/cmdline ; then
                rm -f /usr/lib/egl_gallium.so
                rm -f /usr/lib/libglapi.so*
                systemctl set-environment ELM_ENGINE=gl
-elif grep "gles=1" /proc/cmdline ; then
+elif [ -e /dev/glmem ] ; then
         echo -e "[${_G} Emulator support gles hw acceleration. ${C_}]"
         echo -e "[${_G} Change permission of /dev/glmem. ${C_}]"
         chmod 666 /dev/glmem