fixed typo. the scrip should now work even after a reboot.
This commit is contained in:
parent
b254666566
commit
6b4819092c
2
door.sh
2
door.sh
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue