We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6061f3 commit e7525cfCopy full SHA for e7525cf
installer/utils/detect-sdrs.sh
@@ -6,13 +6,14 @@
6
# Array of SDR USB VID:PID pairs
7
# Add additional pairs to this list for any supported SDR
8
SDR_DEVICES=(
9
- "0x0bda:0x2832" # RealTek 2832
+ "0x0bda:0x2832" # RealTek 2832
10
+ "0x0bda:0x2838" # RTL-SDR.com RTL2838U
11
)
12
13
function detectSDRs() {
14
local -a srdinfo
15
- for sdrdev in "${SDR_DEVICES[*]}"; do
16
+ for sdrdev in "${SDR_DEVICES[@]}"; do
17
IFS=':' read -r -a sdr <<< "$sdrdev"
18
local devlist=$(lsusb -d ${sdr[0]}:${sdr[1]})
19
@@ -51,5 +52,3 @@ function detectSDRs() {
51
52
sdrjson=$(jq -n '.detected |= [inputs]' <<< "${sdrinfo[@]}")
53
echo "$sdrjson"
54
}
-
55
-getSDRs
0 commit comments