This website works better with JavaScript.
Home
Explore
Help
Sign In
Mobile-Devices-ITM
/
Bash-LED
Watch
1
Star
1
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
testing number of arguments
master
Demo User
3 years ago
commit
4d52926f79
2 changed files
with
15 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-0
Readme.md
+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
Write
Preview
Loading…
Cancel
Save