Skip to content

Instantly share code, notes, and snippets.

Created October 26, 2013 04:41
Show Gist options
  • Save anonymous/7165341 to your computer and use it in GitHub Desktop.
Save anonymous/7165341 to your computer and use it in GitHub Desktop.
ShellScript to workaround the problem that happens with VirtualBox on Mac OS X 10.9 called Mavericks. Run this after you close your VM.
#!/bin/bash
unload() {
sudo killall VBoxNetDHCP
sudo /Library/Application\ Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh stop
}
load() {
sudo /Library/Application\ Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh start
}
case "$1" in
unload|remove)
unload
;;
load)
load
;;
*|reload)
unload
load
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment