8 lines
273 B
Plaintext
8 lines
273 B
Plaintext
|
#!/bin/bash
|
||
|
cpu=$(</sys/class/thermal/thermal_zone0/temp)
|
||
|
echo "CPU Temp: $((cpu/1000)) c"
|
||
|
gpu=$(vcgencmd measure_temp | cut -c 6-7 -)
|
||
|
echo "GPU Temp: $gpu c"
|
||
|
ssd=` sudo smartctl -d sat,12 --all /dev/sda | grep Temperature_Celsius | cut -c 88-89 -`
|
||
|
echo "SSD Temp: $ssd c"
|