Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mount_sdcard()
- {
- mountpoint -q sdcard && return
- if [ -n "$SDCARD" -a -e /mnt/$SRC$SDCARD ]; then
- if [ ! -e /android$SDCARD ]; then
- remount_rw
- sddir=`dirname $SDCARD`
- mkdir /android$sddir
- mount --bind /mnt/$SRC$sddir /android$sddir
- fi
- elif [ "$SDCARD" = "premount" ]; then
- # WARNING: premount the sdcard is deprecated since froyo-x86.
- # It is left only for backward compatibility and may be removed
- # in the future.
- if [ -d /mnt/$SRC/sdcard ]; then
- remount_rw
- mount --bind /mnt/$SRC/sdcard mnt/sdcard
- elif [ -d data/sdcard ]; then
- mount --bind data/sdcard mnt/sdcard
- else
- mount -o mode=2777,uid=1000,gid=1015 -t tmpfs tmpfs mnt/sdcard
- fi
- fi
- }
Add Comment
Please, Sign In to add comment