First Commit
This commit is contained in:
commit
dbdc5bcc4a
1791 files changed
+489451
No files matched your search
Executable
+26
@@ -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
|
||||
Reference in new issue
Block a user