osm-garmin: add ability to set sleep from globvar
parent
e172a4e2c2
commit
8647d1f0a0
|
@ -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…
Reference in New Issue