#!/bin/sh

echo Processing mini-init.sh...
version=`uname -r`
echo Kernel version is $version
/bin/mount -t proc /proc /proc
/bin/mount -t sysfs /sys /sys
/sbin/insmod /lib/modules/$version/matrix2pi.ko
/sbin/insmod /lib/modules/$version/kernel/drivers/usb/gadget/udc/udc-core.ko
/sbin/insmod /lib/modules/$version/kernel/drivers/usb/dwc2/dwc2.ko
/sbin/insmod /lib/modules/$version/kernel/drivers/usb/gadget/libcomposite.ko
/sbin/insmod /lib/modules/$version/kernel/drivers/usb/gadget/function/usb_f_hid.ko
/sbin/insmod /lib/modules/$version/kernel/drivers/usb/gadget/legacy/g_hid.ko
echo 0 > /proc/sys/kernel/sysrq
/opt/vc/bin/tvservice -o
/sbin/lsmod
/etc/event2hid
echo Done with mini-init.sh, dropping to shell...
/bin/sh

