osm-garmin: add ability to set sleep from globvar
This commit is contained in:
parent
e172a4e2c2
commit
8647d1f0a0
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,8 @@
|
||||||
sleep_time=3600
|
sleep_time=3600
|
||||||
sleep_time_fail=60
|
sleep_time_fail=60
|
||||||
|
|
||||||
|
[[ -n $OSMGARMIN_DAEMON_SLEEP ]] && sleep_time=$OSMGARMIN_DAEMON_SLEEP
|
||||||
|
|
||||||
function wait() {
|
function wait() {
|
||||||
delay="$1"
|
delay="$1"
|
||||||
echo "💤 Sleeping $delay seconds..."
|
echo "💤 Sleeping $delay seconds..."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue