Skip to content

Instantly share code, notes, and snippets.

@adrian-green
Forked from mfrister/install
Created May 15, 2018 02:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrian-green/da637931d1ee22d84279b6dff1564abb to your computer and use it in GitHub Desktop.
Save adrian-green/da637931d1ee22d84279b6dff1564abb to your computer and use it in GitHub Desktop.
Fix Ubuntu VMs not suspending in VMware Fusion
# Paste into a root shell on your Ubuntu VM
curl -L https://gist.githubusercontent.com/meeee/5e252e93ba4589e67cf3/raw/faa25d74545ca527d713df2b843da43af3cf92ea/network > /etc/init.d/network && \
chmod +x /etc/init.d/network && \
echo "Suspend fix installed."
#!/bin/sh
# Hack for /etc/vmware-tools/scripts/vmware/network which
# otherwise runs deprecated "service networking stop|start"
# Put into /etc/init.d/network and make executable.
#
# By eswierk
# From https://gist.github.com/drakkhen/5473067#comment-1231510
case "$1" in
stop)
ifdown -a
;;
start)
ifup -a
;;
restart)
ifdown -a
ifup -a
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment