Merge branch 'cameraport'
This commit is contained in:
@@ -492,18 +492,28 @@ add_camera() {
|
|||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
while true; do
|
||||||
echo "Camera Port (ENTER will increment last value in /etc/camera_ports):"
|
echo "Camera Port (ENTER will increment last value in /etc/camera_ports):"
|
||||||
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))
|
||||||
echo Selected port is: $CAMPORT | log
|
|
||||||
|
if [ $CAMPORT -gt 7000 ]; then
|
||||||
|
break
|
||||||
|
else
|
||||||
|
echo "Camera Port must be greater than 7000"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
done
|
||||||
|
|
||||||
echo "Settings can be modified after initial setup in /etc/systemd/system/cam${INUM}_$INSTANCE.service"
|
echo "Settings can be modified after initial setup in /etc/systemd/system/cam${INUM}_$INSTANCE.service"
|
||||||
echo
|
echo
|
||||||
while true; do
|
while true; do
|
||||||
|
|||||||
Reference in New Issue
Block a user