Root/data/platform/pandora/scripts/usbon.sh

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

Archive Download this file



interactive