#!/bin/sh set -e
tmpfile=$(mktemp /tmp/dnsmasq-blocked.XXXXXX)
cat > "$tmpfile"
mv "$tmpfile" /etc/dnsmasq-blocked chmod 644 /etc/dnsmasq-blocked
systemctl restart dnsmasq