Lower priority to only handle those that can't be resolved otherwise

This commit is contained in:
RealStickman 2021-07-07 15:53:58 +02:00
parent b697ee74c3
commit 8527518c62

View File

@ -36,7 +36,7 @@ for file in "${conffiles[@]}"; do
# TODO tables do not work as intended
#awk 'NR==5{print "PostUp = ip route add 192.168.1.0/24 via 192.168.86.1 metric 10 table 7"}NR==5{print "PreDown = ip route flush table 7"}1' "$file" > "${file}.tmp"
# NOTE adds a dns to all configs
awk 'NR==4{print "DNS = 172.16.16.1"}1' "$file" > "${file}.tmp"
awk 'NR==5{print "DNS = 172.16.16.1"}1' "$file" > "${file}.tmp"
mv "${file}.tmp" "$file"
# wifi
#awk 'NR==6{print "PostUp = ip route add 192.168.1.0/24 via 172.16.52.1 metric 20 table 7"}1' "$file" > "${file}.tmp"