uniquify uuidpnp

This commit is contained in:
paukstelis
2022-05-23 14:55:35 -04:00
parent 8e4bb0eda2
commit ee855303b6
2 changed files with 26 additions and 16 deletions

View File

@@ -324,6 +324,11 @@ write_camera() {
echo " stream: http://$(hostname).local:$CAMPORT?action=stream" >> $OCTOCONFIG/.$INSTANCE/config.yaml
echo
#uniquify instances
#modify upnpUuid
UUID=$(uuidgen)
sed -i "s/upnpUuid: $PARTITION_COLUMN.*/upnpUuid: $UUID/" $OCTOCONFIG/.$INSTANCE/config.yaml
#Either Serial number or USB port
#Serial Number
if [ -n "$CAM" ]; then