rescueOS/rescueOS/mass-storage-enable.sh

11 line
303 B
Bash

2013-03-23 21:56:55 +01:00
#!/bin/bash
rmmod g_nokia
#stuff changes when sd card is inserted
if [ -e /sys/block/mmcblk0 ] && [ -e /sys/block/mmcblk1 ] ; then
modprobe g_file_storage file=/dev/mmcblk1p2,/dev/mmcblk1p1 stall=0 removable=1
else
modprobe g_file_storage file=/dev/mmcblk0p2,/dev/mmcblk0p1 stall=0 removable=1
fi