Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. chk-remote-mountpoint /my/path/to/folder
  2.  
  3. df -P -T /my/path/to/folder | tail -n +2 | awk '{print $2}'
  4.  
  5. $ stat --format=%m /usr/src/linux
  6. /usr/src
  7.  
  8. $ stat --file-system --format=%T /usr/src/linux
  9. reiserfs
  10.  
  11. if mount | grep -q "/mnt/mountpoint" ; then
  12. echo "mounted"
  13. fi
  14.  
  15. if mount | grep -q "/mnt/mountpoint" | grep -q nfs ; then
  16. echo "mounted"
  17. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement