Skip to content

Commit

Permalink
dump1090: make sure startup works without /var/cache/piaware/location…
Browse files Browse the repository at this point in the history
….env (#207)
  • Loading branch information
wiedehopf authored Oct 20, 2024
1 parent cd2e2bc commit b9b9fd3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rootfs/etc/s6-overlay/scripts/dump1090
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ DUMP1090_CMD+=("--write-json" "/run/dump1090-fa")
DUMP1090_CMD+=("--net-bind-address" "0.0.0.0")

# use location from /var/cache/piaware/location.env
source /var/cache/piaware/location.env
DUMP1090_CMD+=("--lat" "$PIAWARE_LAT")
DUMP1090_CMD+=("--lon" "$PIAWARE_LON")
source /var/cache/piaware/location.env || true
if [[ -n "$PIAWARE_LAT" ]] && [[ -n "$PIAWARE_LON" ]]; then
DUMP1090_CMD+=("--lat" "$PIAWARE_LAT")
DUMP1090_CMD+=("--lon" "$PIAWARE_LON")
fi

# Handle "--modeac"
if [[ "$ALLOW_MODEAC" == "yes" ]]; then
Expand Down

0 comments on commit b9b9fd3

Please sign in to comment.