Hope this is the correct forum.
I'm new to Raspberry Pi and programming.
I have been trying to get my script running at startup without any success, until I found an answer on stack overflow.
https://stackoverflow.com/questions/30507243/start-shell-script-on-raspberry-pi-startup
I wrote the code into /etc/rc.local
which got the script to run at startup. The script keep on running. I have had the SD card into my PC where i added init=/bin/sh
, to cmdline.txt which gives me an command line when starting up my Raspberry. When I write sudo nano /etc/rc.local
I can open the file, delete the code from earlier, but I can't save the file.
Any good advice on how to fix this problem so my script ain't running at boot-up in my terminal anymore?
Thanks.