I have modded the rc.local to start mavproxy at the boot up but it isn’t working. Please help asap
For what it’s worth, I’m starting mavproxy automatically on my RPi, but not at boot. Instead I’m starting it upon log in to a windowing session. I edited /etc/xdg/lxsession/LXDE-pi/autostart to automatically run a shell script when starting a windowing session, like this:
@lxterminal -e /home/pi/mmp.sh
and then in the shell script file /home/pi/mmp.sh I have the commands necessary to start mavproxy. Which for me are:
Easiest/best way to start any program at boot is as following.
- Create “mavproxy_startup” file like attached file(https://docs.zoho.com/file/jjd2ud3901e9bbb6d4876929e541573a66e4b). Don’t change the header. Also filename should NOT have .sh extension
- Copy this file to /etc/init.d
- run command “sudo update-rc.d mavproxy_startup defaults”
- From next boot it will start automatically.