Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.55 KB | None | 0 0
  1. #!/bin/bash
  2. echo "Mounting gentoo..."
  3. dest=/data/gentoo
  4. exc="/bin/login -f root"
  5.  
  6. if [[ -f "$dest/mounted" ]]; then
  7.  echo "Already mounted"
  8.  exec chroot $dest $exc
  9. fi
  10.  
  11. mount /dev/block/mmcblk1p1 $dest
  12. mount -o gid=5 -t devpts devpts $dest/dev/pts
  13. mount -t sysfs sysfs $dest/sys
  14. mount -t proc proc $dest/proc
  15. mount -t tmpfs none $dest/tmp
  16. mount -o size=10%,mode=0755 -t tmpfs none $dest/run
  17. mount --bind /system $dest/mnt/system
  18. mount --bind /data $dest/mnt/data
  19. mount -o mode=777 --bind /data/media/0 $dest/mnt/sdcard
  20. exec chroot $dest $exc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement