OSDN Git Service

mount sdcard
authorRO215IS01 <ro215is01@gmail.com>
Fri, 25 Feb 2011 20:40:21 +0000 (05:40 +0900)
committerRO215IS01 <ro215is01@gmail.com>
Fri, 25 Feb 2011 20:40:21 +0000 (05:40 +0900)
device/sharp/sdio.sh [deleted file]
system/core/rootdir/etc/vold.fstab
system/vold/DirectVolume.cpp

diff --git a/device/sharp/sdio.sh b/device/sharp/sdio.sh
deleted file mode 100644 (file)
index b47a2a4..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/system/bin/busybox ash
-while test ! -b /dev/block/vold/254:0
-do
-sleep 1
-done
-
-sleep 1
-
-vdc volume mount sdcard
index 4aad8dc..bda2b92 100644 (file)
@@ -14,7 +14,7 @@
 
 ## Example of a standard sdcard mount for the emulator / Dream
 # Mounts the first usable partition of the specified device
-dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
+dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.0 /devices/virtual/block/stheno
 
 ## Example of a dual card setup
 # dev_mount left_sdcard  /sdcard1  auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
index 3191cc7..6088c8a 100644 (file)
@@ -143,6 +143,9 @@ void DirectVolume::handleDiskAdded(const char *devpath, NetlinkEvent *evt) {
         mDiskNumParts = 1;
     }
 
+    if (strcmp(devpath, "/devices/virtual/block/stheno") == 0)
+        mDiskNumParts = 0;
+
     char msg[255];
 
     int partmask = 0;