mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-26 04:50:24 +10:00
13 lines
187 B
Bash
Executable File
13 lines
187 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Variable
|
|
temp=$(cat /sys/class/thermal/thermal_zone0/temp)
|
|
cputemp=$(expr $temp / 1000)
|
|
base=32
|
|
|
|
# Main
|
|
Fahrenheit=$(expr $cputemp \* 9 / 5 + $base)
|
|
echo $Fahrenheit
|
|
|
|
exit
|