mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-03 11:44:09 +00:00
34 lines
494 B
Bash
Executable File
34 lines
494 B
Bash
Executable File
#!/bin/sh
|
|
|
|
##
|
|
# load the tap kext
|
|
##
|
|
|
|
. /etc/rc.common
|
|
|
|
StartService ()
|
|
{
|
|
ConsoleMessage "Initializing tap devices"
|
|
|
|
if [ -d /Library/Extensions/tap.kext ]; then
|
|
kextload /Library/Extensions/tap.kext
|
|
fi
|
|
}
|
|
|
|
StopService ()
|
|
{
|
|
if [ -d /Library/Extensions/tap.kext ]; then
|
|
kextunload /Library/Extensions/tap.kext
|
|
fi
|
|
}
|
|
|
|
RestartService ()
|
|
{
|
|
if [ -d /Library/Extensions/tap.kext ]; then
|
|
kextunload /Library/Extensions/tap.kext
|
|
kextload /Library/Extensions/tap.kext
|
|
fi
|
|
}
|
|
|
|
RunService "$1"
|