add /dev path for CAMDEVICE for consistency.

This commit is contained in:
paukstelis
2024-01-30 18:51:04 -05:00
parent b300f707c2
commit 9bc021e1bd
2 changed files with 2 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ write_camera() {
if [ -n "$BYIDCAM" ] && [ -z "$CAM" ] && [ -z "$TEMPUSBCAM" ]; then
CAMDEVICE=$BYIDCAM
else
CAMDEVICE=cam${INUM}_$INSTANCE
CAMDEVICE=/dev/cam${INUM}_$INSTANCE
fi
OUTFILE=cam${INUM}_$INSTANCE
#mjpg-streamer

View File

@@ -6,7 +6,7 @@ Wants=network.online.target
[Service]
EnvironmentFile=/etc/OCTOCAM.env
User=OCTOUSER
ExecStart=/home/OCTOUSER/ustreamer/ustreamer -d /dev/${DEVICE} -s 0.0.0.0 -m MJPEG -r ${RES} -f ${FRAMERATE} -p ${PORT} --device-timeout 8 --device-error-delay 8
ExecStart=/home/OCTOUSER/ustreamer/ustreamer -d ${DEVICE} -s 0.0.0.0 -m MJPEG -r ${RES} -f ${FRAMERATE} -p ${PORT} --device-timeout 8 --device-error-delay 8
[Install]
WantedBy=multi-user.target