X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=system-status;h=8e24d8fbadec4d40bbf7e1b1def062ff6dea9621;hp=606ac7f881e37a6bfdcfc0b49e8a8540b12b390c;hb=7b47d6a266340223e78317cfe0570868f45a4cad;hpb=12cab163424e3a7b0815646d1d4407f9b5839bcb diff --git a/system-status b/system-status index 606ac7f..8e24d8f 100644 --- a/system-status +++ b/system-status @@ -54,17 +54,19 @@ write-status() { fi - # this is for tracking dns over tls issue, which - # fixvpndns() in brc2 fixes. - stat=$(resolvectl dnsovertls tunfsf 2>/dev/null ||: ) - read _ _ _ istls <<<"$stat" - case $istls in - no) : ;; - *) - printf "%s\n" "$istls" | ts >> /tmp/istls.log - chars+=("T:$istls") - ;; - esac + if ip l show tunfsf &>/dev/null; then + # this is for tracking dns over tls issue, which + # fixvpndns() in brc2 fixes. + stat=$(resolvectl dnsovertls tunfsf 2>/dev/null ||: ) + read _ _ _ istls <<<"$stat" + case $istls in + no) : ;; + *) + printf "%s\n" "$istls" | ts >> /tmp/istls.log + chars+=("T:$istls") + ;; + esac + fi if pgrep -G iank -u iank -f 'emacs --daemon' &>/dev/null; then