1
0
mirror of https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git synced 2025-09-09 15:40:45 +02:00

Fix motion detection userscripts (#500)

* Correct detection scripts so they can run multiple scripts

* Add some documentation around motion detection scripts
This commit is contained in:
Dopeyr
2018-06-21 07:21:21 +01:00
committed by jmtatsch
parent 7fd3049889
commit 062860ff79
4 changed files with 47 additions and 8 deletions

View File

@@ -38,9 +38,9 @@ if [ "$sendemail" = true ] ; then
fi
# Run any user scripts.
if [ -f /system/sdcard/config/userscripts/motiondetection/* ]; then
for i in /system/sdcard/config/userscripts/motiondetection/*; do
for i in /system/sdcard/config/userscripts/motiondetection/*; do
if [ -x $i ]; then
echo "Running: $i on"
$i on
done
fi
fi
done