fix cam issue
This commit is contained in:
@@ -9,4 +9,5 @@ server:
|
|||||||
commands:
|
commands:
|
||||||
serverRestartCommand: sudo systemctl restart INSTANCE
|
serverRestartCommand: sudo systemctl restart INSTANCE
|
||||||
systemRestartCommand: sudo reboot
|
systemRestartCommand: sudo reboot
|
||||||
|
systemShutdownCommand: sudo shutdown -n now
|
||||||
firstRun: true
|
firstRun: true
|
||||||
|
|||||||
@@ -266,7 +266,7 @@ new_instance () {
|
|||||||
sed -i "s/upnpUuid: .*/upnpUuid: $(uuidgen)/" $OCTOCONFIG/.$INSTANCE/config.yaml
|
sed -i "s/upnpUuid: .*/upnpUuid: $(uuidgen)/" $OCTOCONFIG/.$INSTANCE/config.yaml
|
||||||
#Set port
|
#Set port
|
||||||
sed -i "/serial:/a\ port: /dev/octo_$INSTANCE" $OCTOCONFIG/.$INSTANCE/config.yaml
|
sed -i "/serial:/a\ port: /dev/octo_$INSTANCE" $OCTOCONFIG/.$INSTANCE/config.yaml
|
||||||
|
|
||||||
if [[ -n $CAM || -n $USBCAM ]]; then
|
if [[ -n $CAM || -n $USBCAM ]]; then
|
||||||
write_camera
|
write_camera
|
||||||
fi
|
fi
|
||||||
@@ -386,7 +386,7 @@ add_camera() {
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$camopt" == generic]; then
|
if [ "$camopt" == generic ]; then
|
||||||
echo "Don't add cameras to the generic instance."
|
echo "Don't add cameras to the generic instance."
|
||||||
main_menu
|
main_menu
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user