Skip to content

Commit

Permalink
create mountpoints for storage
Browse files Browse the repository at this point in the history
  • Loading branch information
StanTRC authored and dorimanx committed Oct 2, 2013
1 parent ed78778 commit 62d231f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sbin/recovery-loader
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ $BB rm -rf /sd-ext
$BB mkdir /sd-ext
$BB chmod -R 777 /sd-ext

$BB rm -rf /storage
$BB mkdir /storage
$BB chmod -R 777 /storage

$BB rm -rf /etc
$BB mkdir /etc
$BB cat /res/etc/recovery.fstab > /etc/recovery.fstab
Expand Down Expand Up @@ -64,6 +68,8 @@ if [ -e /dev/block/mmcblk1p1 ]; then
echo "/dev/block/mmcblk1p1" > /sys/devices/virtual/android_usb/android0/f_mass_storage/lun1/file;
$BB mount -t vfat /dev/block/mmcblk0p11 /emmc-tmp;
$BB mount -t auto /dev/block/mmcblk1p1 /sdcard;
$BB ln -s /emmc-tmp /storage/sdcard0;
$BB ln -s /sdcard /storage/sdcard1;
if [ ! -e /sdcard/.android_secure ]; then
mkdir /sdcard/.android_secure;
fi;
Expand All @@ -77,4 +83,3 @@ else
echo 1 > /sbin/recovery-is-running
recovery
fi;

0 comments on commit 62d231f

Please sign in to comment.