mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-24 11:46:30 +00:00
/etc/init.d/S85motioneye: do not automatically add video devices above /dev/video9
This commit is contained in:
parent
a9519dcf1e
commit
9a9d2eb81b
@ -86,7 +86,7 @@ add_mmal_cameras() {
|
||||
|
||||
add_v4l2_cameras() {
|
||||
index=1
|
||||
for device in $(ls /dev/video* 2>/dev/null); do
|
||||
for device in $(ls /dev/video? 2>/dev/null); do
|
||||
# filter out devices that don't look like cameras
|
||||
if ! v4l2-ctl -d ${device} --list-formats-ext 2>/dev/null | grep -oE '[[:digit:]]+x[[:digit:]]+' &>/dev/null; then
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user