better i3 handling
[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 >/dev/null; then
8 nscd -i hosts
9 systemctl restart dnsmasq
10 fi
11 fi