coreelec安装zerotier
参考:https://gist.github.com/cretudorin/fe72eea3977db286edf89440a97161e9
//全程需要全局代理,我是通过路由器代理的
// 安装 entware installentware
//for x96max 根据自己的机器更改下载地址 wget -O - http://bin.entware.net/aarch64-k3.10/installer/generic.sh | sh // update && install zerotier 安装zerotier opkg update opkg install zerotier // start the daemon 运行zerotier zerotier-one -d // join a network 此处无需<> zerotier-cli join <your network id> // create init script 添加开机启动 touch /opt/etc/init.d/S90zerotier-one.sh chmod 755 /opt/etc/init.d/S90zerotier-one.sh nano /opt/etc/init.d/S90zerotier-one.sh #! /bin/sh case "$1" in start) if ( pidof zerotier-one ) then echo "ZeroTier-One is already running." else echo "Starting ZeroTier-One" ; /opt/bin/zerotier-one -d ; echo "$(date) Started ZeroTier-One" >> /opt/var/log/zerotier-one.log ; fi ;; stop) if ( pidof zerotier-one ) then echo "Stopping ZeroTier-One"; killall zerotier-one echo "$(date) Stopped ZeroTier-One" >> /opt/var/log/zerotier-one.log else echo "ZeroTier-One was not running" ; fi ;; status) if ( pidof zerotier-one ) then echo "ZeroTier-One is running." else echo "ZeroTier-One is NOT running" fi ;; *) echo "Usage: /etc/init.d/zerotier-one {start|stop|status}" exit 1 ;; esac exit 0 // add crontab crontab -e * * * * * /opt/etc/init.d/S90zerotier-one.sh start