Welcome to this modification of SilveRo's original Hamachi startup script!
I have only tested on Mac OS X 10.4.7, 10.4.8 so those outside of those bounds there's no telling how these scripts will work out. But there's a pretty good chance that they'll work just fine™.
Obviously, this set of scripts requires that you've already installed both Hamachi and the tun/tap drivers.
To install the hamachi boot scripts, download this file:
hamachi-boot-macosx.tar.gz
And then enter these commands in Terminal in the directory where you downloaded the file:
sudo cp hamachi-boot-macosx.tar.gz /Library/StartupItems
cd /Library/StartupItems
sudo tar zxvf hamachi-boot-macosx.tar.gz
sudo chown -R root:wheel hamachi
This should result in a directory
/Library/StartupItems/hamachi/
Containing the files
/Library/StartupItems/hamachi/hamachi
/Library/StartupItems/hamachi/hamachi_helper
/Library/StartupItems/hamachi/hamachi_networks.conf
/Library/StartupItems/hamachi/StartupParameters.plist
/Library/StartupItems/hamachi/README
Next edit the beginning of hamachi_helper to reflect which account you used to install Hamachi by replacing "hamachi_account" with the appropriate account name.
If you installed Hamachi as root, I believe the script will work if you set HAMACHI_OWNER=root and HAMACHI_DIR=/var/root/.hamachi. Thanks go to one of the users for providing the correct HAMACHI_DIR variable setting. I'd thank them directly but here at freeasinbeer.com we respect your right to enjoy software anonymously!
After hamachi_helper works, change hamachi_networks.conf to contain the names of the networks you would like to sign on to. One network name per line, as many lines as you want. As far as I know there is no hard limit.
This package is designed to be run by SystemStarter during the boot process. However, you can test it manually by entering commands of the form:
sudo SystemStarter start hamachi
sudo SystemStarter restart hamachi
sudo SystemStarter stop hamachi
Please feel free to notify me if you experience any complications.
Cheers!
Created October 21st, 2006. Last modified November 6th, 2006.