summaryrefslogtreecommitdiff
path: root/misc/scripts/home_linux_boards/homekit_ipcam_capture_restart.sh
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-06-11 03:30:12 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-06-11 03:30:21 +0300
commit387c26e218f7bf10819d7bed657f7f62b64e18ce (patch)
treebe2be20f2058501bb11c11651e0daa2e3a29c4a4 /misc/scripts/home_linux_boards/homekit_ipcam_capture_restart.sh
parent0109d6c01db94822757cd7cb84034dd6f4d6cea8 (diff)
move some scripts around, delete obsolete ones
Diffstat (limited to 'misc/scripts/home_linux_boards/homekit_ipcam_capture_restart.sh')
-rw-r--r--misc/scripts/home_linux_boards/homekit_ipcam_capture_restart.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/scripts/home_linux_boards/homekit_ipcam_capture_restart.sh b/misc/scripts/home_linux_boards/homekit_ipcam_capture_restart.sh
new file mode 100644
index 0000000..85144da
--- /dev/null
+++ b/misc/scripts/home_linux_boards/homekit_ipcam_capture_restart.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+for f in $(ls /etc/ipcam_capture.conf.d/ | xargs); do
+ camera="${f/.conf/}"
+ echo "restarting $camera"
+ systemctl restart ipcam_capture@${camera}
+done \ No newline at end of file