#!/bin/bash while [ 0 ]; do wget -q https://gist.github.com/vagnerd/XXX/raw/YYY/ips -O /tmp/ips cat /tmp/ips | awk '{ print "route add " $1 " gw X.X.X.X"}' > /tmp/ips.sh sh /tmp/ips.sh sleep 3600 done ### rc-local ## https://www.cyberciti.biz/faq/how-to-enable-rc-local-shell-script-on-systemd-while-booting-linux-system/ # #nohup /root/update-route-with-gist.sh & #exit 0