Update ips

This commit is contained in:
RealStickman 2022-06-10 20:35:29 +02:00
parent 4eae1ef811
commit c18989ece3

View File

@ -30,10 +30,10 @@ for file in "${conffiles[@]}"; do
else else
echo "Patching $file" echo "Patching $file"
# NOTE route while being connected into my lan # NOTE route while being connected into my lan
awk 'NR==5{print "PostUp = ip route add 192.168.1.0/24 via 172.16.52.1 metric 10"}NR==5{print "PreDown = ip route del 192.168.1.0/24"}1' "$file" > "${file}.tmp" awk 'NR==5{print "PostUp = ip route add 192.168.1.0/24 via 172.16.7.1 metric 10"}NR==5{print "PreDown = ip route del 192.168.1.0/24"}1' "$file" > "${file}.tmp"
mv "${file}.tmp" "$file" mv "${file}.tmp" "$file"
# hetzner net # hetzner net
awk 'NR==5{print "PostUp = ip route add 172.18.50.0/24 via 172.16.52.1 metric 10"}NR==5{print "PreDown = ip route del 172.18.50.0/24"}1' "$file" > "${file}.tmp" awk 'NR==5{print "PostUp = ip route add 172.18.50.0/24 via 172.16.7.1 metric 10"}NR==5{print "PreDown = ip route del 172.18.50.0/24"}1' "$file" > "${file}.tmp"
mv "${file}.tmp" "$file" mv "${file}.tmp" "$file"
# NOTE only one PreDown line is required as we are using a specific table for this # NOTE only one PreDown line is required as we are using a specific table for this
# TODO tables do not work as intended # TODO tables do not work as intended