Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "Mounting gentoo..."
- dest=/data/gentoo
- exc="/bin/login -f root"
- if [[ -f "$dest/mounted" ]]; then
- echo "Already mounted"
- exec chroot $dest $exc
- fi
- mount /dev/block/mmcblk1p1 $dest
- mount -o gid=5 -t devpts devpts $dest/dev/pts
- mount -t sysfs sysfs $dest/sys
- mount -t proc proc $dest/proc
- mount -t tmpfs none $dest/tmp
- mount -o size=10%,mode=0755 -t tmpfs none $dest/run
- mount --bind /system $dest/mnt/system
- mount --bind /data $dest/mnt/data
- mount -o mode=777 --bind /data/media/0 $dest/mnt/sdcard
- exec chroot $dest $exc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement