I am trying to get a simple script to run automatically at startup. A friend told me to do this but it did not work. Could someone take a look to see what it is missing?
*(Also I am brand new to linux, so this is pretty foreign to me)
Here is what I was told to do:
sudo nano /etc/init.d/obabp.sh
Then enter this text:
#!/bin/bash sudo python /home/pi/gits/RPi-OBABP/src/obabp.py
save file and then
$ sudo chmod +x /etc/init.d/obabp.sh $ sudo shutdown -r now