init script for autostart of timelapse example