summarylogtreecommitdiffstats
path: root/autobuild.sh
diff options
context:
space:
mode:
authorPremysl Srubar2021-02-14 14:30:06 +0100
committerPremysl Srubar2021-02-14 14:30:06 +0100
commitc7b79c4cc0a9447a14365fb85a75bd7281596745 (patch)
treef8ad78fedb1c0561b235e58127559bec1cd29dae /autobuild.sh
downloadaur-c7b79c4cc0a9447a14365fb85a75bd7281596745.tar.gz
Initial version
Diffstat (limited to 'autobuild.sh')
-rwxr-xr-xautobuild.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/autobuild.sh b/autobuild.sh
new file mode 100755
index 000000000000..7f856725fd54
--- /dev/null
+++ b/autobuild.sh
@@ -0,0 +1,17 @@
+#! /bin/bash
+function block_for_change
+{
+ inotifywait -r -e modify,move,create,delete .
+}
+
+
+while block_for_change; do
+ echo CHANGE
+ sudo systemctl daemon-reload
+ sudo systemctl stop fake-background-webcam@1.service
+ sudo systemctl start fake-background-webcam@1.service
+ sleep 1
+ clear
+ sudo systemctl status -n40 --no-pager fake-background-webcam@1.service
+
+done