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:
@@ -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
|
||||
|
Reference in New Issue
Block a user