1 2 3 4 5
#!/bin/sh for i in $(seq 0 3) ; do echo "$1" > "/sys/class/leds/beaglebone:green:usr$i/brightness" done