#!/bin/sh # # Hamachi # . /etc/rc.common StartService () { ConsoleMessage "Starting Hamachi" sleep 30s /usr/sbin/tuncfg /usr/bin/hamachi -c /Users/robertdobson/.hamachi start } StopService () { ConsoleMessage "Stopping Hamachi" /usr/bin/hamachi stop } RestartService () { StopService StartService } if [ z"$#" == z"0" ] ; then StartService else case $1 in start ) StartService ;; stop ) StopService ;; restart) RestartService ;; * ) echo "/Library/StartupItems/Hamachi/Hamachi: unknown argument: ";; esac fi