Skip to content

Commit

Permalink
/etc/init.d/S85motioneye: do not automatically add video devices abov…
Browse files Browse the repository at this point in the history
…e /dev/video9
  • Loading branch information
ccrisan committed Feb 3, 2020
1 parent a9519dc commit 9a9d2eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion board/common/overlay/etc/init.d/S85motioneye
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a9d2eb

Please sign in to comment.