|
@ -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 |
|
|