Browse Source

Minor changes in script

master
Gustavo Martinez 2 years ago
parent
commit
88d7aef456
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      blink_LED3.sh

+ 3
- 0
blink_LED3.sh View File

@ -8,12 +8,15 @@ function removeTrigger
echo "The LED3 user is starting" echo "The LED3 user is starting"
if [ "$1" == "on" ]; then if [ "$1" == "on" ]; then
echo "LED on"
removeTrigger removeTrigger
echo "1" >> "$LED3_PATH/brightness" echo "1" >> "$LED3_PATH/brightness"
elif [ "$1" == "off" ]; then elif [ "$1" == "off" ]; then
echo "LED off"
removeTrigger removeTrigger
echo "0" >> "$LED3_PATH/brightness" echo "0" >> "$LED3_PATH/brightness"
elif [ "$1" == "blink" ]; then elif [ "$1" == "blink" ]; then
"LED blinking"
removeTrigger removeTrigger
echo "1" >> "$LED3_PATH/brightness" echo "1" >> "$LED3_PATH/brightness"
sleep 0.5 sleep 0.5


Loading…
Cancel
Save