Guest User

umount script for chroot on raspi

a guest
Feb 11th, 2013
428
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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"
RAW Paste Data