Skip to content

Instantly share code, notes, and snippets.

@adrian-green
Forked from mfrister/install
Created May 15, 2018 02:53
Show Gist options
  • 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