aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuildos9
1 files changed, 8 insertions, 1 deletions
diff --git a/buildos b/buildos
index 6510977..6b81de3 100755
--- a/buildos
+++ b/buildos
@@ -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