Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/guysoft/OctoPi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPowerWiesel <11167590+PowerWiesel@users.noreply.github.com>2022-01-26 13:51:50 +0300
committerGitHub <noreply@github.com>2022-01-26 13:51:50 +0300
commit7e151c0f47d4b9720f9a2973040cd8ebc1e33da5 (patch)
tree0c79a60d653a02602006d2310efdbfeb0fb05db3
parentdf10e6d33c3ea0d122065a030fbea2dcb78be0aa (diff)
picam-bullseye-fix
mjpg-streamer doesn't work anymore with the new picam stack on bullseye based images - using the old stack for now.
-rwxr-xr-xsrc/modules/octopi/start_chroot_script5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/octopi/start_chroot_script b/src/modules/octopi/start_chroot_script
index 11b981b..6247a7b 100755
--- a/src/modules/octopi/start_chroot_script
+++ b/src/modules/octopi/start_chroot_script
@@ -270,6 +270,11 @@ systemctl_if_exists enable streamer_select.service
if [ "$OCTOPI_INCLUDE_MJPGSTREAMER" == "yes" ]
then
systemctl_if_exists enable webcamd.service
+### use legacy camera stack on bullseye for now
+ if grep "camera_auto_detect=1" /boot/config.txt
+ then
+ sed -i "s/camera_auto_detect=1/camera_auto_detect=0/g" /boot/config.txt
+ fi
else
rm /etc/logrotate.d/webcamd
rm /etc/systemd/system/webcamd.service