# Append to update-rc.d postinst
pkg_postinst_${PN}_append() {
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
fbset -vyres $(expr $YRES \* 3)
echo Starting PVR
- insmod /lib/modules/$(uname -r)/kernel/drivers/gpu/pvr/pvrsrvkm.ko
- insmod /lib/modules/$(uname -r)/kernel/drivers/gpu/pvr/omaplfb.ko
- bc_ko="/lib/modules/$(uname -r)/kernel/drivers/gpu/pvr/bufferclass_ti.ko"
+
+ if test -f /etc/powervr-kmodver; then
+ version=`cat /etc/powervr-kmodver`
+ fi
+ insmod /lib/modules/$(uname -r)/kernel/drivers/gpu/pvr/$version/pvrsrvkm.ko
+ insmod /lib/modules/$(uname -r)/kernel/drivers/gpu/pvr/$version/omaplfb.ko
+ bc_ko="/lib/modules/$(uname -r)/kernel/drivers/gpu/pvr/$version/bufferclass_ti.ko"
if test -f "$bc_ko"; then
insmod $bc_ko
fi
cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib
cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin
echo "${ES_REVISION}" > /etc/powervr-esrev
+ sync
+ fi
+ if test -x /usr/bin/pvrsrvinit; then
+ /usr/bin/pvrsrvinit
+ elif test -x /usr/bin/pvrsrvctl; then
+ /usr/bin/pvrsrvctl --start --no-module
+ else
+ echo "Error: missing /usr/bin/pvrsrv* or bad permissions"
fi
- /usr/bin/pvrsrvinit