mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-21 13:54:15 -07:00
Add Asustor build scripts
This commit is contained in:
parent
66236e91a2
commit
1a5274b86b
16 changed files with 334 additions and 1 deletions
26
pkg/asustor/zerotier/CONTROL/start-stop.sh
Executable file
26
pkg/asustor/zerotier/CONTROL/start-stop.sh
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue