Skip to content

Instantly share code, notes, and snippets.

@jadonk
Last active February 13, 2019 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jadonk/0aeaa544219c573e4f4515b02943188d to your computer and use it in GitHub Desktop.
Save jadonk/0aeaa544219c573e4f4515b02943188d to your computer and use it in GitHub Desktop.
sudo bash -c 'while true; do
echo "(`cat /sys/class/thermal/thermal_zone0/temp`-30000)/75" | bc > /sys/class/leds/beaglebone:green:usr4/delay_on
echo 1 > /sys/class/leds/beaglebone:green:usr4/shot
sleep 1
done'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment