better comment
This commit is contained in:
@@ -1,8 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# script to set away state in zm when the phone is not present
|
# script to set away state in ZoneMinder when the phone is not present
|
||||||
# requires jq to be installed
|
# requires jq to be installed
|
||||||
|
|
||||||
|
|
||||||
curdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
curdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
#load configuration
|
||||||
. $curdir/isphonehere.config.sh
|
. $curdir/isphonehere.config.sh
|
||||||
|
|
||||||
currentstate=
|
currentstate=
|
||||||
@@ -56,7 +60,7 @@ waitbeforeretry() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
#so we know what state we are in
|
#read current state on startup, so we know what state we are in
|
||||||
setcurrentstate
|
setcurrentstate
|
||||||
|
|
||||||
#look for phone
|
#look for phone
|
||||||
|
Reference in New Issue
Block a user