This will show how you can setup scripts that will run on bootup of a Raspberry Pi. Any user in the /home/
directory where the name of the user matches the name of their home directory will be able to take advantage of this setup, as well as the root user.
- Add the following code to the file:
/etc/rc.local
, but be sure to leave the last line of the file asexit 0
# Startup scripts
## Root
if [ -f /root/startup.sh ]; then