Skip to content

Instantly share code, notes, and snippets.

@liftoff
Created May 24, 2012 14:00
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 liftoff/2781721 to your computer and use it in GitHub Desktop.
Save liftoff/2781721 to your computer and use it in GitHub Desktop.
Beaglebone LED blinker shell script
#!/bin/sh
LED=/sys/devices/platform/leds-gpio/leds/beaglebone\:\:usr1/brightness
while true; do
echo "1" > $LED
sleep 1
echo "0" > $LED
sleep 1
done
# Put this in /etc/init.d/ and create a link to it inside /etc/rc2.d and /etc/rc3.d as S05blinker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment