Fix motion installation error if user "video" already exist

Add device present check to initskript
Change webcam quality to default
This commit is contained in:
Arne Fitzenreiter
2009-07-11 20:21:18 +02:00
parent b4a3be4764
commit fa52201e11
3 changed files with 9 additions and 1 deletions

View File

@@ -6,6 +6,12 @@
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

View File

@@ -25,3 +25,5 @@
extract_files
restore_backup ${NAME}
useradd -s /bin/false video
#Ignore error if the user already exist
exit 0