diff --git a/groundstation/aprs.sh b/groundstation/aprs.sh index 7c844533..d0d21496 100755 --- a/groundstation/aprs.sh +++ b/groundstation/aprs.sh @@ -31,7 +31,11 @@ direwolf -t 0 & sleep 5 -rtl_fm -M fm -f 144.39M -s 48k | aplay -D hw:2,0,0 -r 48000 -t raw -f S16_LE -c 1 +value=`aplay -l | grep "Loopback"` +echo "$value" > /dev/null +set -- $value + +rtl_fm -M fm -f 144.39M -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1