From b9b6af746851bcb7b99129166533099fb2d31f99 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Mon, 1 Apr 2024 15:51:52 -0400 Subject: [PATCH] only write to video0 if ustreamer --- cameras.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cameras.sh b/cameras.sh index 6e87976..6657499 100755 --- a/cameras.sh +++ b/cameras.sh @@ -244,7 +244,7 @@ add_camera() { else echo echo - echo "Setting up a Pi camera service for /dev/video0" + echo "Setting up a Pi camera service." echo "Please note that mixing this setup with USB cameras may lead to issues." echo "Don't expect extensive support for trying to fix these issues." echo @@ -287,7 +287,7 @@ add_camera() { if [ -n "$camopt" ]; then write_camera #Pi Cam setup, replace cam_INSTANCE with /dev/video0 - if [ -n "$PI" ]; then + if [ -n "$PI" ] && [ "$STREAMER" == ustreamer ]; then echo SUBSYSTEM==\"video4linux\", ATTRS{name}==\"video0\", SYMLINK+=\"cam${INUM}_$INSTANCE\" >> /etc/udev/rules.d/99-octoprint.rules fi