This should work :
https://gist.github.com/hotnuma/a0593d7 ... 1698350844
Download the file and compile it :
Execute the program :
It will measure the CPU temperature every 10s and if it goes up to 75° C, it will call sync and then systemctl poweroff
https://gist.github.com/hotnuma/a0593d7 ... 1698350844
Download the file and compile it :
Code:
gcc -o test main.cCode:
./testStatistics: Posted by manu2007 — Tue Jun 10, 2025 11:27 pm