Kampfi Apr 28th, 2019 118 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. cpuTemp0=$(cat /sys/class/thermal/thermal_zone0/temp)
  3. cpuTemp1=$(($cpuTemp0/1000))
  4. cpuTemp2=$(($cpuTemp0/100))
  5. cpuTempM=$(($cpuTemp2 %$cpuTemp1))
  6. gpuTemp0=$(cat /sys/class/thermal/thermal_zone1/temp)
  7. gpuTemp1=$(($gpuTemp0/1000))
  8. gpuTemp2=$(($gpuTemp0/100))
  9. gpuTempM=$(($gpuTemp2 %$gpuTemp1))
  10. date=$(($date))
  11. echo "$(date)"
  12. echo CPU "= "$cpuTemp1"."$cpuTempM"'C"
  13. echo GPU "= "$gpuTemp1"."$gpuTempM"'C"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand