Skip to content

Instantly share code, notes, and snippets.

@r7vme
Created September 29, 2018 13:21
Show Gist options
  • Save r7vme/d69dccb0193aeb3d13b3558fd432c45a to your computer and use it in GitHub Desktop.
Save r7vme/d69dccb0193aeb3d13b3558fd432c45a to your computer and use it in GitHub Desktop.
#!/bin/bash
# Show temperature in Jetson TX1 board
for i in $(ls -d /sys/class/thermal/thermal_zone*); do
m=`cat $i/type`
t=`cat $i/temp`
echo $m $(($t / 1000))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment