X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=trusted-network;h=7cd754cf861476854f5ab6fe69f7e076b37da98a;hb=ef571de225d48762aad38f9a5a3b28bbab654e39;hp=d227137732b56c148ee2cd4f15284a731b4f53dc;hpb=343a048be4b32d18540c6531048d2b9a006774ae;p=distro-setup diff --git a/trusted-network b/trusted-network index d227137..7cd754c 100755 --- a/trusted-network +++ b/trusted-network @@ -8,6 +8,9 @@ trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR # Usage: run when switching from an untrusted network like public wifi # to a trusted one. -rm -f /etc/dnsmasq.d/untrusted-network.conf +if [[ -e /etc/dnsmasq.d/untrusted-network.conf ]]; then + rm -f /etc/dnsmasq.d/untrusted-network.conf -systemctl reload dnsmasq + nscd -i hosts + systemctl restart dnsmasq +fi