Subversion Repositories alarming

Rev

Rev 3 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 daniel-mar 1
#!/bin/bash
2
 
3
DIR=$( dirname "$0" )
4
 
5
# Only report every 30 seconds
4 daniel-mar 6
DETFIL="/tmp/last_motion_detect_$USER.ts"
3 daniel-mar 7
if [ -f "$DETFIL" ]; then
8
	if test "`find "$DETFIL" -mmin -0,5`"; then
9
		# Neuer als 30 Sekunden. Nix machen
10
		exit
11
	fi
12
fi
13
touch "$DETFIL"
14
 
15
# Execute detect.d/*
16
for i in "$DIR"/detect.d/*; do ( "$i" &) ; done