s243a

CleanMounts_Simple

Jun 20th, 2018
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. )
RAW Paste Data