Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add CPU temp file for Raspberry Pi/linux
  • Loading branch information
satmandu authored Nov 18, 2021
commit d561057cd8731540bc0a7ca588e71efb9b1443a6
4 changes: 4 additions & 0 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -2219,6 +2219,10 @@ get_cpu() {
break
}
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.
if [[ -d "$speed_dir" ]]; then
Expand Down