Skip to content

Commit

Permalink
Fix webcam to work with /boot/firmware/octopi.txt path #823 guysoft/C…
Browse files Browse the repository at this point in the history
  • Loading branch information
guysoft committed Jul 16, 2024
1 parent 5809c96 commit d18df33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/modules/octopi/filesystem/home/root/bin/streamer_select
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
# Exit on any error.
set -e

CONFIG_FILE=/boot/firmware/octopi.txt
# Fallback for older images
if [ ! -f "${CONFIG_FILE}" ] && [ -f "/boot/octopi.txt" ]; then
CONFIG_FILE=/boot/octopi.txt
fi
MJPEG_TYPE=mjpeg
HLS_TYPE=hls
MJPEG_SERVICE=webcamd.service
Expand All @@ -29,4 +33,4 @@ elif [ "${camera_streamer}" = "${HLS_TYPE}" ]; then
else
echo "Streamer type '${camera_streamer}' is not supported."
exit 1
fi
fi

0 comments on commit d18df33

Please sign in to comment.