From 9a9d2eb81be619ca65e5e57316924fcac10dc0ce Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Mon, 3 Feb 2020 23:58:31 +0200 Subject: [PATCH] /etc/init.d/S85motioneye: do not automatically add video devices above /dev/video9 --- board/common/overlay/etc/init.d/S85motioneye | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/common/overlay/etc/init.d/S85motioneye b/board/common/overlay/etc/init.d/S85motioneye index 65f19ecdd67..fc6ee0780ea 100755 --- a/board/common/overlay/etc/init.d/S85motioneye +++ b/board/common/overlay/etc/init.d/S85motioneye @@ -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