#!/bin/sh ### BEGIN INIT INFO # Provides: RPICAMsnap # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start camera at boot time # Description: Start camera at boot time. ### END INIT INFO # /etc/init.d/RPICAMsnap # Set the CAMUSER variable to the name of the user to start # the camera and make in the RAM temp fs photos under CAMUSER='pi' su $CAMUSER sh -c 'raspistill -t 86400000 -tl 5000 -o /run/shm/RPICAM.jpg -w 1024 -h 768 -q 50 -n' echo "camera start"