iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mainly add external monitoring of mail server
[distro-setup]
/
trusted-network
diff --git
a/trusted-network
b/trusted-network
index d227137732b56c148ee2cd4f15284a731b4f53dc..220c963c41cbcfde7d7b44d57900b6256c2e969c 100755
(executable)
--- 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.
# 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 reload dnsmasq
+fi