Rev 3 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3 | Rev 4 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #!/bin/bash |
1 | #!/bin/bash |
2 | 2 | ||
3 | DIR=$( dirname "$0" ) |
3 | DIR=$( dirname "$0" ) |
4 | 4 | ||
5 | # Only report every 30 seconds |
5 | # Only report every 30 seconds |
6 | DETFIL="/tmp/last_motion_detect.ts" |
6 | DETFIL="/tmp/last_motion_detect_$USER.ts" |
7 | if [ -f "$DETFIL" ]; then |
7 | if [ -f "$DETFIL" ]; then |
8 | if test "`find "$DETFIL" -mmin -0,5`"; then |
8 | if test "`find "$DETFIL" -mmin -0,5`"; then |
9 | # Neuer als 30 Sekunden. Nix machen |
9 | # Neuer als 30 Sekunden. Nix machen |
10 | exit |
10 | exit |
11 | fi |
11 | fi |