Managing user LEDs by using Bash Scripting language
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
254 B

  1. #! /bin/bash
  2. LED3_PATH=/sys/class/leds/beaglebone:green:usr3
  3. function removeTrigger
  4. {
  5. echo 'none' >> '$LED3_PATH/trigger'
  6. }
  7. echo "Starting the LED Bash Script"
  8. if [ $# != 1 ]; then
  9. echo "Error: There is an incorrect number of arguments."
  10. exit 2
  11. fi