-
-
Save iskigow/7165348 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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
With the new version of VirtualBox this script won't be necessary!