Advertisement
Guest User

umount script for chroot on raspi

a guest
Feb 11th, 2013
852
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. mnt=mount
  4. root_disk=raspi.img
  5. mnt_devices="proc dev/pts dev sys"
  6.  
  7. for i in $mnt_devices; do
  8. sudo umount "$mnt"/$i
  9. done
  10. sudo umount "$mnt"
  11. sudo rmdir "$mnt"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement