op_storage.sh: use partition instead of whole drive
authorGrazvydas Ignotas <notasas@gmail.com>
Mon, 15 Sep 2014 22:44:16 +0000 (01:44 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 15 Sep 2014 22:58:09 +0000 (01:58 +0300)
complain to pmprog if this doesn't work:
http://boards.openpandora.org/topic/16956-usb-mass-storage-mounting-wrong-partition/

recipes/pandora-system/pandora-scripts.bb
recipes/pandora-system/pandora-scripts/op_storage.sh

index 6fc98f7..bd0db83 100644 (file)
@@ -5,7 +5,7 @@ COMPATIBLE_MACHINE = "omap3-pandora"
 
 RDEPENDS = "bash sed gawk grep zenity"
 
-PR = "r160"
+PR = "r161"
 
 SRC_URI = " \
           file://op_bright.sh \
index bd957ce..4203fc9 100755 (executable)
@@ -31,7 +31,7 @@ mountmassstorage()
        sleep $delay
 
        # switch to mass storage
-       modprobe g_file_storage file=$device stall=0 removable=1
+       modprobe g_file_storage file=$device2 stall=0 removable=1
 
        zenity --title="Mass Storage Mode" --info --text="SD Card $selection is currently in Mass Storage Mode.\n\nClick on OK when you're finished with your data transfer\nand want to go back to normal mode."