Add device present check to initskript
Change webcam quality to default
webcam_port 2500
# Quality of the jpeg images produced (default: 50)
-webcam_quality 75
+webcam_quality 50
# Output frames at 1 fps when no motion is detected and increase to the
# rate given by webcam_maxrate when motion is detected (default: off)
case "$1" in
start)
boot_mesg "Starting motion webcam server..."
+ if [ ! -e /dev/video0 ]; then
+ boot_mesg "Error! No video input device found."
+ echo_failure
+ #No 3 min wait
+ exit 0;
+ fi
chown :video /dev/video*
mkdir -p /var/motion/cam1
chown -R video: /var/motion/cam1
extract_files
restore_backup ${NAME}
useradd -s /bin/false video
+#Ignore error if the user already exist
+exit 0