Guest User

Untitled

a guest
Jun 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. mount_sdcard()
  2. {
  3. mountpoint -q sdcard && return
  4. if [ -n "$SDCARD" -a -e /mnt/$SRC$SDCARD ]; then
  5. if [ ! -e /android$SDCARD ]; then
  6. remount_rw
  7. sddir=`dirname $SDCARD`
  8. mkdir /android$sddir
  9. mount --bind /mnt/$SRC$sddir /android$sddir
  10. fi
  11. elif [ "$SDCARD" = "premount" ]; then
  12. # WARNING: premount the sdcard is deprecated since froyo-x86.
  13. # It is left only for backward compatibility and may be removed
  14. # in the future.
  15. if [ -d /mnt/$SRC/sdcard ]; then
  16. remount_rw
  17. mount --bind /mnt/$SRC/sdcard mnt/sdcard
  18. elif [ -d data/sdcard ]; then
  19. mount --bind data/sdcard mnt/sdcard
  20. else
  21. mount -o mode=2777,uid=1000,gid=1015 -t tmpfs tmpfs mnt/sdcard
  22. fi
  23. fi
  24. }
Add Comment
Please, Sign In to add comment