Fork me on GitHub

Organizations

@github @rss
1 results for cpu
  • 难度等级: 可能需要更长的时间
    images/featured-image.jpg
    如果你想在某个温度下关闭树莓,那么你就来对地方了。我有一个脚本,通过Crontab检查CPU温度。 #!/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. TEMP="`/usr/bin/printf "%.
    bash cpu cron linux maker Created Fri, 14 Feb 2020 00:00:00 +0000