Created
March 30, 2023 16:55
-
-
Save vagnerd/309c6f5673b98f4af80946952698dfdc to your computer and use it in GitHub Desktop.
Revisions
-
vagnerd created this gist
Mar 30, 2023 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ #!/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