public
Description: A "StartupItems" folder (script and plist) which makes Hamachi start up when your OS X machine boots.
Clone URL: git://github.com/trak3r/hamachi-for-os-x-start-up-on-boot.git
System Administrator (author)
Mon May 12 14:13:53 -0700 2008
commit  144aef9fe1eed087299650377a1b6b10c99a396c
tree    b1a37e10d4cad2d270f92bcf015196950fd531c0
parent  943f4148d2537ace2865e55591441805014810dd
100755 39 lines (32 sloc) 0.604 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/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