Root/
| 1 | #!/bin/bash |
| 2 | # $1 = sd|nand|root |
| 3 | # defaults to sd (compatible with previous versions) |
| 4 | export PATH=$PATH:/sbin |
| 5 | modprobe net2272 |
| 6 | if [ $1 = "nand" ]; then |
| 7 | umount /mnt/nand || mount -o remount,loop,ro /mnt/nand |
| 8 | modprobe g_file_storage file=/dev/loop/7 |
| 9 | elif [ $1 = "root" ]; then |
| 10 | mount -o remount,loop,ro / |
| 11 | modprobe g_file_storage file=/dev/mtdblock/3 |
| 12 | else |
| 13 | umount /mnt/sd || mount -o remount,loop,ro /mnt/sd |
| 14 | modprobe g_file_storage file=/dev/mmcsd/disc0/disc |
| 15 | fi |
| 16 |
Branches:
install_locations
master
opkrun
packages
