Currently to run my program....
1. I power on my pi
2. log in(with password)
3. "cd dirName"
4. "sudo -s"
5. "mavproxy.py" plus args and stuff (its in the system path)
*a password is not required when I use sudo. Not sure why. Maybe because my current user has sudo privileges. Don't fully understand logging in and user privileges. Like what types of things can be run when no user is logged in, i.e. startup???
I want to automate this process. So when I power on my pi, this all occurs without any user intervention. In the end it just needs to run mavproxy.py as a super user. The documentation says to use sudo -s. Not sure why it is necessary. The program runs its own type of terminal environment when it is started, so that may be why.
A nice feature would be able to run all this in a "screen", so then I could ssh into the pi and interact with the program. But that is not necessary.
One last thing. Does the pi have the ability to connect to a lan network(ethernet) after startup? Could I have it run its start routine and then plug in the ethernet later on and ssh into the device?
I have to tried to accomplish this with rc.local but couldn't figure it out. Any suggestions?
Thanks,
Daniel
