Skip to content
This repository has been archived by the owner on Aug 24, 2023. It is now read-only.

Commit

Permalink
Add UUID support for beast_reduce_plus_out option
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t committed Feb 5, 2023
1 parent 32b032c commit df4c098
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
21 changes: 21 additions & 0 deletions rootfs/etc/cont-init.d/50-store-uuid
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/with-contenv bash
#shellcheck shell=bash disable=SC2015

# Write UUID to file
#---------------------------------------------------------------------------------------------
# Copyright (C) 2023, Ramon F. Kolb (kx1t)
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with this program.
# If not, see <https://www.gnu.org/licenses/>.
#---------------------------------------------------------------------------------------------

[[ -n "${UUID}" ]] && echo "$UUID" > /run/uuid
4 changes: 4 additions & 0 deletions rootfs/etc/services.d/readsb/run
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ if [ -n "${BEASTHOST}" ]; then
READSB_CMD+=("--net-connector=${BEASTHOST},${BEASTPORT},beast_in")
fi

if [ -n "${UUID}" ]; then
READSB_CMD+=("--uuid-file=/run/uuid")
fi

READSB_CMD+=(--write-json=/run/readsb)
READSB_CMD+=(--heatmap-dir /var/globe_history)
READSB_CMD+=(--heatmap 15)
Expand Down

0 comments on commit df4c098

Please sign in to comment.