Published in: Bash
This command will force all mounted AFP network drive to disconnect. I've set this to run automatically each time my laptop sleeps so that if I wake it up on a different network Finder won't freak out.
mount | awk '/^afp_/ { system("umount -f " $3) }'
You need to login to post a comment.
