Skip to content

Commit

Permalink
make sure autogain doesn't start too early
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Apr 29, 2024
1 parent a8bf18b commit a6e5e0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Empty file.
3 changes: 3 additions & 0 deletions rootfs/etc/s6-overlay/scripts/autogain
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ fi

mkdir -p /var/globe_history/autogain

# wait a bit so stats.json is present
sleep 5

# Do special things if it's the first time AUTOGAIN is running
if [[ ! -f /var/globe_history/autogain/autogain_initialized ]]; then
s6wrap --quiet --prepend=autogain --timestamps --args echo "Autogain initialization started. We'll collect data every $READSB_AUTOGAIN_INITIAL_INTERVAL secs for $(( READSB_AUTOGAIN_INITIAL_TIMEPERIOD / 60 )) minutes to do an initial gain assessment."
Expand Down

0 comments on commit a6e5e0b

Please sign in to comment.