mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
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:
@@ -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
|
||||
|
||||
@@ -25,3 +25,5 @@
|
||||
extract_files
|
||||
restore_backup ${NAME}
|
||||
useradd -s /bin/false video
|
||||
#Ignore error if the user already exist
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user