iankelling.org
/
git
/
distro-setup
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
mostly start using prometheus
[distro-setup]
/
fsf-vpn-dns-cleanup
1
#!/bin/bash
2
3
set -eE -o
pipefail
4
trap
'echo "
$0
:
$LINENO
:error:
\"
$BASH_COMMAND
\"
returned $?" >&2'
ERR
5
6
if
!
echo
|
/
a
/
exe
/
cedit fsf
/
etc
/
dnsmasq-servers.conf
;
then
7
if
systemctl is-active dnsmasq |
grep
-xF
active
&>/
dev
/
null
;
then
8
nscd
-i
hosts
9
systemctl restart dnsmasq
10
fi
11
fi