X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fixvpndns;h=a97b2bd1489633cba0bb7b3dbb3503bbac6a384f;hb=51c8b40fd2aac71d29dc9298ca65425725ad1edd;hp=30e07255a443e1720f2a08348a520e8a14504ed2;hpb=a108e4b381c380c0bc6be19f31f4f1d6d7d7b118;p=distro-setup diff --git a/fixvpndns b/fixvpndns index 30e0725..a97b2bd 100755 --- a/fixvpndns +++ b/fixvpndns @@ -1,7 +1,7 @@ #!/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 @@ -11,8 +11,9 @@ esac if ! resolvectl dnsovertls tunfsf &>/dev/null; then - echo failed resolvectl dnsovertls tunfsf. rerunning: - resolvectl dnsovertls tunfsf + ## most likely the interface doesnt exist. if we wanted verbose output, then: + # echo failed resolvectl dnsovertls tunfsf. rerunning: + # resolvectl dnsovertls tunfsf ||: exit 0 fi read _ link _ < <(resolvectl dnsovertls tunfsf)