Skip to content

Instantly share code, notes, and snippets.

@wwiv
Created January 28, 2018 04:23
Show Gist options
  • Save wwiv/5ea1ccd99e6fa6475ca0808914a21005 to your computer and use it in GitHub Desktop.
Save wwiv/5ea1ccd99e6fa6475ca0808914a21005 to your computer and use it in GitHub Desktop.
Workaround vmware fusion networking not working after sleeping your mac in 10.1
#!/bin/bash
# See https://communities.vmware.com/thread/580365
UUID=$(id -u)
if [[ "${UUID}" -ne 0 ]]; then
echo "You must be root to run this, not $(id -u -n), id: ${UUID}"
exit 1
fi
/Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --stop
/Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment