stty in rc.local

Asked by Doug Minett

put following lines in rc.local to set serial characteristics on a port:

chown root:root /dev/ttyRP0
chmod ugo+rw /dev/ttyRP0

(the above lines succeed)

stty -F /dev/ttyRP0 clocal 9600

(this line is not executed)

the command that fails in rc.local succeeds on command line.

help on this puzzle appreciated.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

if you make a script to sleep for ten seconds then run the command. you can add the script in rc.local but with an ampersand to background it.

Revision history for this message
Doug Minett (doug-minett) said :
#2

Thanks actionparsnip, that solved my question.