Skip to content
Advertisement

No cursor motion capability occurs when startup linux script execute minicom script with at commands

I have created a startup Linux script for a board that runs Debian jessie Armbian 8.1. I need at startup to run at command in a modem attached to it via USB interface. I’ve put the script inside rc.local:

JavaScript

In the folder Script I have a script:

JavaScript

The at_command contains:

JavaScript

The issue is that when I run the script manually it works correctly, however when I start the the board the at commands do not execute.
Since the board is Debian I also followed the link: ttp://www.stuffaboutcode.com/2012/06/raspberry-pi-run-program-at-start-up.html and to adapt the script to run according LSBInitScripts but I got the same behavior. When running sudo /etc/init.d/myScript start manually everything works great, but after Linux startup no at_command is executed. I added in the rc.local the following commands for debugging:

JavaScript

And in the generated log file I got this printout:

JavaScript

What I have done wrong?

Advertisement

Answer

I am guessing it is related to there being no terminal during startup.

Maybe try adding the following line before starting minicom:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement