X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=system-status;h=8e24d8fbadec4d40bbf7e1b1def062ff6dea9621;hb=7b47d6a266340223e78317cfe0570868f45a4cad;hp=2dd39ca7d99a90c88ccc9bddf7e51a49f37535cf;hpb=7d9ec600a5ed9f88b85e02a27ee017b85721a6ac;p=distro-setup diff --git a/system-status b/system-status index 2dd39ca..8e24d8f 100644 --- a/system-status +++ b/system-status @@ -53,8 +53,24 @@ write-status() { fi fi - if pgrep -f 'emacs --daemon' &>/dev/null; then - emacsfiles="$(emacsclient --eval "$(cat /a/bin/ds/unsaved-buffers.el)"| sed '/^"nil"$/d;s/^"(/E: /;s/)"$//')" + + 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 + emacsfiles="$(emacsclient --eval "$(cat /usr/local/bin/unsaved-buffers.el)"| sed '/^"nil"$/d;s/^"(/E: /;s/)"$//')" if [[ $emacsfiles ]]; then chars+=("$emacsfiles") fi @@ -151,6 +167,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