libgles-omap3: run init scripts manually on postinst
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 3 Mar 2013 16:47:09 +0000 (18:47 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 3 Mar 2013 17:03:04 +0000 (19:03 +0200)
otherwise lib fixup won't be done until reboot

recipes/powervr-drivers/libgles-omap3.inc

index 8e94f23..4b7705d 100644 (file)
@@ -249,10 +249,15 @@ INITSCRIPT_NAME = "pvr-init"
 INITSCRIPT_PARAMS = "start 30 5 2 . stop 40 0 1 6 ."
 
 # Append to update-rc.d postinst
-pkg_postinst_${PN}_append() {
+pkg_postinst_${PN}_prepend() {
 rm -f /etc/powervr-esrev
 rm -f /etc/powervr-kmodver
 
 ln -sf /usr/lib/libXdmcp.so.6.0.0 /usr/lib/libXdmcp.so.0 
 ln -sf /usr/lib/libXau.so.6.0.0 /usr/lib/libXau.so.0
+
+# as postinst_prepend doesn't seem to put this before update-rc.d,
+# we need this lame hack to apply ES lib fixup
+/etc/init.d/pvr-init stop
+/etc/init.d/pvr-init start
 }