Expose the internal storage partition as an USB mass storage block

This commit is contained in:
Cosmin Gorgovan 2016-04-26 22:26:33 +01:00
parent 3e437f26ff
commit 94de881f6c
2 changed files with 10 additions and 1 deletions

View File

@ -75,8 +75,11 @@ config_rootfs() {
mkdir ./rootfs/mnt/onboard
mkdir ./rootfs/mnt/external
cp files/fstab rootfs/etc/
chown root:root rootfs/etc/fstab
cp files/rc.local rootfs/etc/
chown root:root rootfs/etc/fstab rootfs/etc/rc.local
chmod 644 rootfs/etc/fstab
chmod 755 rootfs/etc/rc.local
echo "Configuration done."
}

6
files/rc.local Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh -e
depmod -a
modprobe g_file_storage file=/dev/mmcblk0p3
exit 0