I am running Stretch Desktop on the Pi 3B. I am trying to run a .sh script at startup to do the following commands, including running a python script:
Code: Select all
#!/bin/bash sudo mount -a python3 /home/.../python_script.py
My issue is that this method of modifying /etc/rs.local does not work for me. I can't figure out why. I also tried a method reported online that makes an executable .sh using chmod +x and then adding that file to /etc/init.d/script.sh. This did not work either.
Any idea what I could be doing wrong?
The official Raspberry Pi documentation (https://www.raspberrypi.org/documentati ... c-local.md) on how to do this, which is what I have described above--does not work.