fixed typo. the scrip should now work even after a reboot.

This commit is contained in:
root 2012-10-15 03:30:12 +01:00
parent b254666566
commit 6b4819092c
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ CLOSED_INDICATOR=/tmp/door_status_closed
if [ -f $OPEN_INDICATOR ]; then
LOCK_AGE=$(( $(date +%s)-$(stat -c %X $OPEN_INDICATOR) ))
elif [ -f $CLOSE_INDICATOR ]; then
elif [ -f $CLOSED_INDICATOR ]; then
LOCK_AGE=$(( $(date +%s)-$(stat -c %X $CLOSED_INDICATOR) ))
else
LOCK_AGE=15