X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=system-status;h=051de623df85e046d22a01f7d810b2e597f42578;hb=d4366929e6e200155b010dc05ce74255ee6a45ed;hp=606ac7f881e37a6bfdcfc0b49e8a8540b12b390c;hpb=12cab163424e3a7b0815646d1d4407f9b5839bcb;p=distro-setup diff --git a/system-status b/system-status index 606ac7f..051de62 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 @@ -198,6 +200,7 @@ write-status() { done fi +# if [[ $(grep -v "exim user lost privilege for using -C option" /var/log/exim4/paniclog 2>/dev/null ||:) ]]; then if [[ -s /var/log/exim4/paniclog ]]; then chars+=("PANIC!") # leave it up to epanic-clean to send email notification