Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Morse code tutorial "can't open '/lib/ramips.sh" #90

Open
Tommydarke opened this issue Oct 7, 2017 · 0 comments
Open

Morse code tutorial "can't open '/lib/ramips.sh" #90

Tommydarke opened this issue Oct 7, 2017 · 0 comments

Comments

@Tommydarke
Copy link

Hi,
Working through the console tutorial but when I try and run the example shell script (below for ref) I get the error:

: not found.sh: line 2:
'root/morse.sh: .: line 4: can't open '/lib/ramips.sh

I'm not sure what the problem is, any ideas?

Cheers
Tom

#!/bin/sh

find the name of the board, to be used in the name of the LED

. /lib/ramips.sh
board=$(ramips_board_name)

define the function that will set the LED to blink the arguments in morse code

_MorseMain () {

echo morse > /sys/class/leds/$board\:amber\:system/trigger
echo 120 > /sys/class/leds/$board\:amber\:system/delay
echo $* > /sys/class/leds/$board\:amber\:system/message

}

Main Program

run the function and pass in all of the arguments

_MorseMain $*

exit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant