#!/bin/sh BRIGHTNESS=0 while true ; do BRIGHTNESS=$(( ( $BRIGHTNESS + 1 ) % 2 )) for i in $(seq 0 3) ; do echo $BRIGHTNESS > "/sys/class/leds/beaglebone:green:usr$i/brightness" done sleep 0.5 done