fix port increment issue (#88)
This commit is contained in:
@@ -511,13 +511,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))
|
||||
fi
|
||||
|
||||
if [ $CAMPORT -gt 7000 ]; then
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user