op_storage: mark as removable
authorGrazvydas Ignotas <notasas@gmail.com>
Wed, 6 Feb 2013 15:32:10 +0000 (17:32 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Wed, 6 Feb 2013 15:32:10 +0000 (17:32 +0200)
This allows some Windows image writing tools to work.
Thanks to Neelix for the idea.

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

index 2141686..ec97f27 100644 (file)
@@ -6,7 +6,7 @@ COMPATIBLE_MACHINE = "omap3-pandora"
 DEPENDS = "zenity dbus"
 RDEPENDS = "zenity dbus"
 
-PR = "r128"
+PR = "r129"
 
 SRC_URI = " \
           file://op_paths.sh \
index ddd8e2c..3994003 100755 (executable)
@@ -25,7 +25,7 @@ if umount $device2; then
        sleep $delay
 
        # switch to mass storage
-       modprobe g_file_storage file=$device stall=0
+       modprobe g_file_storage file=$device 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."