SHARE
TWEET

CleanMounts_Simple

s243a Jun 20th, 2018 (edited) 67 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top