more fixes for camport
This commit is contained in:
1 parent
05ddd6b03b
commit
9149a1b790
1 file changed
+3
-1
+3
-1
@@ -495,10 +495,12 @@ add_camera() {
|
|||||||
read CAMPORT
|
read CAMPORT
|
||||||
if [ -z "$CAMPORT" ]; then
|
if [ -z "$CAMPORT" ]; then
|
||||||
CAMPORT=$(tail -1 /etc/camera_ports)
|
CAMPORT=$(tail -1 /etc/camera_ports)
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$CAMPORT" ]; then
|
if [ -z "$CAMPORT" ]; then
|
||||||
CAMPORT=8000
|
CAMPORT=8000
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CAMPORT=$((CAMPORT+1))
|
CAMPORT=$((CAMPORT+1))
|
||||||
|
|
||||||
if [ $CAMPORT -gt 7000 ]; then
|
if [ $CAMPORT -gt 7000 ]; then
|
||||||
|
|||||||
Reference in new issue
Block a user