various improvements
[distro-setup] / system-status
index 606ac7f881e37a6bfdcfc0b49e8a8540b12b390c..051de623df85e046d22a01f7d810b2e597f42578 100644 (file)
@@ -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