Advertisement
s243a

CleanMounts_Simple

Jun 20th, 2018
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.20 KB | None | 0 0
  1. #!/bin/sh
  2. while read line; do
  3.   umount -l "$line"
  4.   rmdir $line
  5. done < <\
  6. (  
  7.   mount  | grep TazPup | \
  8.   grep -v '/TazPup/Full' | \
  9.   sed -n -E 's/^.*[ ]([^ ]*\/TazPup[^ ]*)[ ].*$/\1/p'  \
  10. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement