Ok, I have searched and searched. I can't find whats wrong. I simply can't get mmal to run on boot. I have it working so when I log in and run ./startmotion it works just fine. I simply can't get it to run as a daemon.
In /etc/default/motion :
I even tried copying motion and motion-mmal as well as the conf to /etc and put this in /etc/rc.local
(sleep 10;su – pi -c "/etc/motion-mmal -n -c /etc/motion.conf")&
As I said, I can log in as pi and run ./startmotion from the mmal directory and it runs fine. I just can't get it to start the daemon.
Could some kind soul give me a step by step on how to get this running at power on without having to ssh in and start it manually? Please.