summaryrefslogtreecommitdiff
path: root/ext/installfiles/linux/zerotier-containerized/main.sh
blob: 685a6891eb76dd91883b00116218610f8aec410a (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin

if [ ! -e /dev/net/tun ]; then
	echo 'FATAL: cannot start ZeroTier One in container: /dev/net/tun not present.'
	exit 1
fi

exec /zerotier-one