#!/bin/sh

# load the PVR Services module.
modprobe pvrsrvkm

# delete the device for PVR services device and recreate with the
# correct major number.
pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
rm -f /dev/pvrsrvkm
mknod /dev/pvrsrvkm c $pvr_maj 0
chmod 666 /dev/pvrsrvkm

# run the PVR initialisation server
pvrsrvinit

# load remaining modules.
modprobe omaplfb
modprobe bc_example

# delete the device for bc_example and recreate with the
# correct major number.
bcd_maj=`grep "bc_example$" /proc/devices | cut -b1,2,3`
rm -f /dev/bc_example
mknod /dev/bc_example c $bcd_maj 0
chmod 666 /dev/bc_example

exit 0
