From 887a33306021e5a2f7007ce744647cce5cad78e7 Mon Sep 17 00:00:00 2001 From: kx1t <15090643+kx1t@users.noreply.github.com> Date: Fri, 26 Apr 2024 06:49:47 -0400 Subject: [PATCH] Add BiasTee option --- rootfs/etc/s6-overlay/scripts/aiscatcher | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rootfs/etc/s6-overlay/scripts/aiscatcher b/rootfs/etc/s6-overlay/scripts/aiscatcher index 52aa199..d71451c 100755 --- a/rootfs/etc/s6-overlay/scripts/aiscatcher +++ b/rootfs/etc/s6-overlay/scripts/aiscatcher @@ -2,8 +2,6 @@ # shellcheck shell=bash disable=SC1091,SC2016,SC2068,SC2076,SC2086,SC2015 source /scripts/common -APPNAME="aiscatcher" -s6wrap=(s6wrap --quiet --timestamps --prepend="${APPNAME}") #--------------------------------------------------------------------------------------------- # Copyright (C) 2022-2024, Ramon F. Kolb (kx1t) @@ -204,6 +202,9 @@ if [[ -n "${RTLSDR_DEVICE_SERIAL}" ]]; then #AISCATCHER_EXTRA_OPTIONS="$(sed -E 's/-c\s+[a-dA-D ]+//g' <<< "$AISCATCHER_EXTRA_OPTIONS")" # remove any -c items from param to avoid duplication aiscatcher_command+=("-d ${RTLSDR_DEVICE_SERIAL}") aiscatcher_command+=("-gr tuner ${RTLSDR_DEVICE_GAIN} rtlagc ON") + if chk_enabled "${RTLSDR_DEVICE_BIASTEE}"; then + aiscatcher_command+=("BIASTEE on") + fi if [[ -n "${RTLSDR_DEVICE_PPM}" ]]; then aiscatcher_command+=("-p ${RTLSDR_DEVICE_PPM}") #AISCATCHER_EXTRA_OPTIONS="$(sed -E 's/-p\s+[0-9]+\s*//g'<<< "$AISCATCHER_EXTRA_OPTIONS")" # remove any -p items from param to avoid duplication