more fixes for camport

This commit is contained in:
paukstelis
2023-04-06 19:54:18 -04:00
parent 05ddd6b03b
commit 9149a1b790

View File

@@ -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