From 9149a1b790090a0ef73ba8e6477d44ae96291a10 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Thu, 6 Apr 2023 19:54:18 -0400 Subject: [PATCH] more fixes for camport --- octoprint_deploy.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/octoprint_deploy.sh b/octoprint_deploy.sh index 21a3be7..db350e0 100755 --- a/octoprint_deploy.sh +++ b/octoprint_deploy.sh @@ -495,10 +495,12 @@ add_camera() { read CAMPORT if [ -z "$CAMPORT" ]; then CAMPORT=$(tail -1 /etc/camera_ports) - + fi + if [ -z "$CAMPORT" ]; then CAMPORT=8000 fi + CAMPORT=$((CAMPORT+1)) if [ $CAMPORT -gt 7000 ]; then