#!/bin/bash
# Copyright (C) 2019 Ian Kelling
# SPDX-License-Identifier: AGPL-3.0-or-later
-source /a/bin/errhandle/err
+source /a/bin/bash-bear-trap/bash-bear
resolvuid=$(id -u systemd-resolve)
case $EUID in
# resolvectl dnsovertls tunfsf ||:
exit 0
fi
-read _ link _ < <(resolvectl dnsovertls tunfsf)
+read -r _ link _ < <(resolvectl dnsovertls tunfsf)
busctl call org.freedesktop.resolve1 /org/freedesktop/resolve1 org.freedesktop.resolve1.Manager SetLinkDNSOverTLS is $link no