summaryrefslogtreecommitdiff
path: root/armbian-envtemp-cpufreq.sh
diff options
context:
space:
mode:
Diffstat (limited to 'armbian-envtemp-cpufreq.sh')
-rw-r--r--armbian-envtemp-cpufreq.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/armbian-envtemp-cpufreq.sh b/armbian-envtemp-cpufreq.sh
index 4b88edd..e46d3c2 100644
--- a/armbian-envtemp-cpufreq.sh
+++ b/armbian-envtemp-cpufreq.sh
@@ -95,6 +95,7 @@ echo -n "read" >&3
read -t 5 response <&3
envtemp=$(echo "$response" | jq ".temp" | awk "{print int(\$1+0.5)}")
+[ -z "$envtemp" ] && die "failed to read environment temperature"
# setting corresponding cpu freq
while read temp; do