From 2cad5a1202233d5ab342355ed0a293071f3e5c1a Mon Sep 17 00:00:00 2001 From: s2 Date: Thu, 12 Oct 2017 21:42:42 +0200 Subject: [PATCH] better comment --- isphonehere.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/isphonehere.sh b/isphonehere.sh index f67347c..b1b6247 100755 --- a/isphonehere.sh +++ b/isphonehere.sh @@ -1,8 +1,12 @@ #!/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 + + curdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +#load configuration . $curdir/isphonehere.config.sh currentstate= @@ -56,7 +60,7 @@ waitbeforeretry() { fi } -#so we know what state we are in +#read current state on startup, so we know what state we are in setcurrentstate #look for phone