From c507e8d5716ff3cb3a9a48092650e052a9b8c27d Mon Sep 17 00:00:00 2001 From: Olivier Louvignes Date: Tue, 22 Nov 2022 22:15:25 +0100 Subject: [PATCH] fix: fix support for Raspberry Pi Camera Module v2.1 --- src/modules/mjpgstreamer/filesystem/root/usr/local/bin/webcamd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/mjpgstreamer/filesystem/root/usr/local/bin/webcamd b/src/modules/mjpgstreamer/filesystem/root/usr/local/bin/webcamd index 59a1178..2009ffc 100755 --- a/src/modules/mjpgstreamer/filesystem/root/usr/local/bin/webcamd +++ b/src/modules/mjpgstreamer/filesystem/root/usr/local/bin/webcamd @@ -216,7 +216,7 @@ while true; do video_devices=($(find /dev -regextype sed -regex '\/dev/video[0-9]\+' | sort -nk1.11 2> /dev/null)) # add list of raspi camera into an array - if [ "`vcgencmd get_camera`" = "supported=1 detected=1" ]; then + if [[ "`vcgencmd get_camera`" = "supported=1 detected=1"* ]]; then video_devices+=( "raspi" ) fi