mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-20 21:43:08 +00:00
27 lines
318 B
Bash
Executable File
27 lines
318 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. /etc/script/lib/command.sh
|
|
|
|
APKG_PKG_DIR=/usr/local/AppCentral/zerotier
|
|
|
|
case $1 in
|
|
|
|
start)
|
|
modprobe tun
|
|
# start script here
|
|
$APKG_PKG_DIR/bin/zerotier-one $APKG_PKG_DIR/data -d
|
|
;;
|
|
|
|
stop)
|
|
# stop script here
|
|
pkill zerotier
|
|
;;
|
|
|
|
*)
|
|
echo "usage: $0 {start|stop}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit 0
|