allow initial instance creation without udev (#96)

* better failure if first run is true

* better conditional for tempusb

* remove camera port selection

* syntax error

* bad break

* add qualifier if udev not set
This commit is contained in:
paukstelis
2023-06-30 09:35:28 -04:00
committed by GitHub
parent 829de78794
commit 9f70670ee8
5 changed files with 31 additions and 36 deletions

View File

@@ -304,13 +304,13 @@ remove_everything() {
get_settings
if prompt_confirm "Remove everything?"; then
get_instances false
unset 'instances[0]'
readarray -t cameras < <(ls -1 /etc/systemd/system/cam*.service 2>/dev/null | sed -n -e 's/^.*\/\(.*\).service/\1/p')
get_cameras false
for instance in "${INSTANCE_ARR[@]}"; do
remove_instance $instance
done
for camera in "${cameras[@]}"; do
for camera in "${CAMERA_ARR[@]}"; do
remove_camera $camera
done