diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-11-07 12:57:20 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-11-07 12:57:20 +0200 |
commit | bb6b9ba411b09017a582ee9566d42896fddc8d62 (patch) | |
tree | 443515b00b4d3ac352316cc3b9111d8e1a67ec7c | |
parent | 497ec1126ddea837575420cb624d6aa7009beb99 (diff) |
Don't fail if unable to query sensors
-rwxr-xr-x | buildos | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1027,6 +1027,7 @@ declare -A toolchain_cursors # Latest systemd journal cursor. # Monitoring loop. # +sensors=true count=0 while true; do @@ -1345,7 +1346,13 @@ EOF done fi - sensors -A + if [ "$sensors" ]; then + if ! sensors -A; then + info "unable to query sensors, disabling" + sensors= + fi + fi + info "monitoring..." sleep 60 done |