I’m currently researching on what the best way is to deploy my app on Balena OS.
What important is for my code is that the 4G connection is always enabled before starting docker images. What I do is execute bash commands that communicate with ttyAMA0 and send AT commands. After that I use libqmi-utils to activate an wwan0 connection for direct 4G internet.
This code must be running no matter what. Normally this bash command is added to /etc/rc.local. I’ve discovered that I cannot sudo and modify outside the docker containers.
I was wondering what the best option for me is to be sure that the bash app is running no matter what? And is executed before the containers are activated?
Thanks in advance!