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