bunch of fixes, change sy host, deploy some new stuff
[distro-setup] / system-status
index c3fe13b411d6a8475ae60ec04c43425c727a3024..606ac7f881e37a6bfdcfc0b49e8a8540b12b390c 100644 (file)
@@ -53,8 +53,22 @@ write-status() {
     fi
   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 pgrep -G iank -u iank -f 'emacs --daemon' &>/dev/null; then
-    emacsfiles="$(emacsclient --eval "$(cat /a/bin/ds/unsaved-buffers.el)"| sed '/^"nil"$/d;s/^"(/E: /;s/)"$//')"
+    emacsfiles="$(emacsclient --eval "$(cat /usr/local/bin/unsaved-buffers.el)"| sed '/^"nil"$/d;s/^"(/E: /;s/)"$//')"
     if [[ $emacsfiles ]]; then
       chars+=("$emacsfiles")
     fi
@@ -151,6 +165,7 @@ write-status() {
         fi
 
         for d in /a/bin/distro-setup /p/c; do
+          [[ -d $d ]] || continue
           cd $d
           if [[ ! -e .git ]]; then
             # some hosts i dont push all of /p/c