This script works only on 19.07*
sed -i 's/downloads.openwrt.org/mirrors.tuna.tsinghua.edu.cn\/openwrt/g' /etc/opkg/distfeeds.conf
opkg update
tls_line=$(opkg list | grep libustream | grep tls)
tls_package=$(echo "$tls_line" | head -n1 | cut -d " " -f1)
opkg install ${tls_package} unzip
wget https://github.com/flyw/TP4OpenW/archive/master.zip -O master.zip
unzip master.zip
mv TP4OpenW-master TP4OpenW
/root/TP4OpenW/installation.sh
ON ROUTE
scp /root/.ssh/id_rsa.pub root@[UPSTREAM_IP]:/tmp/id_rsa.pub
ON UPSTREAM_SERVER
cat /tmp/id_rsa.pub >> /root/.ssh/authorized_keys
ON ROUTE
ssh root@[UPSTREAM_IP]
vi /etc/config/autossh
# Update [UPSTREAM_IP]
reboot