#!/bin/sh

echo Mount MMC read-only
mount -o remount,ro /mnt/mmc

echo Loading USB device and gadget drivers
if [ -f /drivers/udc.ko ]; then
  insmod /drivers/udc.ko
  insmod /lib/modules/2.6.11.8-hsc0/kernel/drivers/usb/gadget/g_file_storage.ko file=/dev/mmca1
fi
