Browse Source

testing number of arguments

master
Demo User 3 years ago
commit
4d52926f79
2 changed files with 15 additions and 0 deletions
  1. +0
    -0
      Readme.md
  2. +15
    -0
      bashLED.sh

+ 0
- 0
Readme.md View File


+ 15
- 0
bashLED.sh View File

@ -0,0 +1,15 @@
#! /bin/bash
LED3_PATH=/sys/class/leds/beaglebone:green:usr3
function removeTrigger
{
echo 'none' >> '$LED3_PATH/trigger'
}
echo "Starting the LED Bash Script"
if [ $# != 1 ]; then
echo "Error: There is an incorrect number of arguments."
exit 2
fi

Loading…
Cancel
Save