Add CPU temp file for Raspberry Pi/linux
This commit is contained in:
parent
24b1281f9a
commit
d561057cd8
1 changed files with 4 additions and 0 deletions
4
neofetch
4
neofetch
|
|
@ -2219,6 +2219,10 @@ get_cpu() {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
done
|
done
|
||||||
|
# If on a Raspberry Pi...
|
||||||
|
if grep -q "Raspberry Pi" /proc/device-tree/model; then
|
||||||
|
temp_dir=/sys/class/thermal/thermal_zone0/temp
|
||||||
|
fi
|
||||||
|
|
||||||
# Get CPU speed.
|
# Get CPU speed.
|
||||||
if [[ -d "$speed_dir" ]]; then
|
if [[ -d "$speed_dir" ]]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue