2
0
Fork 0

osm-garmin: add ability to set sleep from globvar

main
Ducky 2023-10-02 23:40:52 +01:00
parent e172a4e2c2
commit 8647d1f0a0
1 changed files with 2 additions and 0 deletions

View File

@ -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..."