I've been using a dAISy HAT Receiver for Raspberry Pi to send data to ais.boatnerd.com and it works well through Kplex but I can't get it to auto start.
Is there a better way to do this than what I'm doing below?
I created a file called aisstart.sh in /home/pi
Inside the file it says
sudo service kplex start
sudo kplex file:direction=out
Then
chmod -755 /home/pi/aisstart.sh
And added it to rc.local with and without bash
I can manually run aisstart.sh from the command line using: sudo bash aisstart.sh and it works.
Here is rc.local, I've tried with and with