Repository with basic instructions

main
Gerardo Marx 2 years ago
commit 5e60aa8de7

@ -0,0 +1,24 @@
#! /bin/bash
LED=/sys/class/leds/beaglebone:green:usr
num=$1
function removeTrigger
{
echo "none" >> "$LED$num/trigger"
}
echo "Running the LED script."
if [ $# != 1 ]; then
echo "Error, wrong number of arguments"
echo "Try ./leds.sh 1"
exit 2
fi
if [ $# == 1 ]; then
#echo "none" > "$LED$1/trigger"
removeTrigger
echo "1" > "$LED$1/brightness"
exit 0
fi
Loading…
Cancel
Save