minor fix and add automatic updates
[distro-setup] / trusted-network
1 #!/bin/bash
2
3 set -eE -o pipefail
4 trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
5
6 [[ $EUID == 0 ]] || exec sudo -E "$BASH_SOURCE" "$@"
7
8 # Usage: run when switching from an untrusted network like public wifi
9 # to a trusted one.
10
11 rm -f /etc/dnsmasq.d/untrusted-network.conf
12
13 systemctl reload dnsmasq