Advertisement
Guest User

vm-share.sh

a guest
Feb 28th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. vmware-hgfsclient | while read folder; do
  4. echo "[i] Mounting ${folder} (/mnt/hgfs/${folder})"
  5. mkdir -p "/mnt/hgfs/${folder}"
  6. umount -f "/mnt/hgfs/${folder}" 2>/dev/null
  7. vmhgfs-fuse -o allow_other -o auto_unmount ".host:/${folder}" "/mnt/hgfs/${folder}"
  8. done
  9.  
  10. sleep 2s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement