Created
March 30, 2023 16:55
-
-
Save vagnerd/309c6f5673b98f4af80946952698dfdc to your computer and use it in GitHub Desktop.
update-route-with-gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while [ 0 ]; do | |
wget -q https://gist.githubusercontent.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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment