1
results
for cpu
-
Schwierigkeitsgrad: Es kann etwas länger dauern
Αν θέλετε να απενεργοποιήσετε ένα βατόμουρο σε μια συγκεκριμένη θερμοκρασία, τότε βρίσκεστε στο σωστό μέρος. Έχω ένα σενάριο που ελέγχει τη θερμοκρασία της CPU μέσω του Crontab: #!/bin/sh # This script reads the Broadcom SoC temperature value and shuts down if it # exceeds a particular value. # 80ºC is the maximum allowed for a Raspberry Pi. # Get the reading from the sensor and strip the non-number parts SENSOR="`/opt/vc/bin/vcgencmd measure_temp | cut -d "=" -f2 | cut -d "'" -f1`" # -gt only deals with whole numbers, so round it.