#! /usr/bin/env sh NETWORKS="8056c2e21c000001" # Space seperated list of networks to join, default here is the public network Earth VERSION=1.4.6 wget http://pkg.freebsd.org/freebsd:12:x86:64/latest/All/zerotier-${VERSION}.txz -O /tmp/zerotier-${VERSION}.txz pkg add -f /tmp/zerotier-${VERSION}.txz echo 'zerotier_enable="YES"' >> /etc/rc.conf service zerotier start sleep 5 for n in $NETWORKS; do zerotier-cli join ${n} done