File tree Expand file tree Collapse file tree
rootfs/etc/s6-overlay/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,11 +54,6 @@ if [[ -z "${SOAPYSDR}" ]] && [[ -z "${RTL_SERIAL}" ]] && [[ -z "${SERIAL}" ]] ;
5454 "${s6wrap[@]}" echo "Either RTL_SERIAL or SOAPYSDR must be set, exiting"
5555fi
5656
57- if [[ -n "${SOAPYSDR}" ]]; then
58- sed -i "s/SOAPYSDR=\"\"/SOAPYSDR=\"$SOAPYSDR\"/g" /etc/s6-overlay/scripts/acarsdec
59- fi
60-
61-
6257mkdir -p /run/acars
6358touch /run/acars/acars.past5min.json
6459
Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ source /scripts/common
66
77ACARS_BIN="/usr/local/bin/acarsdec"
88# shellcheck disable=SC2001
9- SOAPYSDR=""
10-
119FREQ_STRING=""
1210
1311ACARS_CMD=("-i" "$FEED_ID")
4038
4139# loop through the SOAPYSDR string and split on spaces
4240if [[ -n "${SOAPYSDR}" ]]; then
43- IFS=' ' read -ra SOAPYSDR_PROCESSED <<< "${SOAPYSDR}"
44- # ACARS_CMD+=("${SOAPYSDR_PROCESSED[@]}") # used for acarsdec < 4.0
45- ACARS_CMD+=("--soapysdr" "${SOAPYSDR_PROCESSED[@]}")
41+ ACARS_CMD+=("--soapysdr" "${SOAPYSDR}")
4642 if [[ ${SOAPYSDR} == *"airspy"* ]] && [[ -z "${RTLMULT}" ]]; then
4743 # airspy runs at 3MSPS so needs a different sample rate multiplier
4844 RTLMULT="240"
You can’t perform that action at this time.
0 commit comments