14 lines
273 B
Bash
14 lines
273 B
Bash
#!/system/bin/sh
|
|
pipe=/data/adb/zerotier/run/pipe
|
|
temp_output=/data/adb/zerotier/run/temp.out
|
|
if [[ ! -p $pipe ]]; then
|
|
echo "daemon not running"
|
|
exit 1
|
|
fi
|
|
|
|
if [[ "$1" ]]; then
|
|
echo "$1" > $pipe
|
|
else
|
|
echo "Usage: zerotier.sh {start|stop|restart|join|leave}"
|
|
fi
|