Hi,
I am trying to run a shell script /home/pi/mmal/startmotion at boot, but so far I had no success. What should I do so it runs at boot? rc.local? CRON? And how to do it?
Thanks a lot
- tedhale
- Posts: 114
- Joined: Thu Sep 20, 2012 4:52 pm
- Location: Williamsburg, VA, USA
- Contact: Website
Re: Run shell script at boot
/etc/rc.local is the usual place to do this. Be sure to run the script in the background (add a & to the end of the line) otherwise rc.local won't exit until your script completes and startup will hang. Of course, if that's the behavior you want, the leave off the &.
- Ted B. Hale
http://raspberrypihobbyist.blogspot.com
http://raspberrypihobbyist.blogspot.com