Update pacsat.sh fix RTL-SDR test

pull/431/head
Alan Johnston 2 months ago committed by GitHub
parent 3c828362b4
commit d51257dc4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -11,21 +11,13 @@ card=0
pwm=0 pwm=0
if [ "$1" = "l" ] ; then if [ "$1" = "l" ] ; then
loopback=1 loopback=1
elif [ "$1" = "v" ] ; then elif [ "$1" = "v" ] ; then
vox=1 vox=1
elif [ "$1" = "c" ] ; then elif [ "$1" = "c" ] ; then
card=1 card=1
else else
pwm=1 pwm=1
fi fi
if [[ $(arecord -l | grep "USB Audio Device") ]] ; then if [[ $(arecord -l | grep "USB Audio Device") ]] ; then
@ -53,24 +45,19 @@ else
echo "TXC not present" echo "TXC not present"
txc=0 txc=0
timeout 1 timeout 1 rtl_test &> out.txt if [[ $(lsusb | grep "RTL") ]] ; then
if [[ $(grep "No supported" out.txt) ]] ; then echo "RTL-SDR detected"
echo "No RTL-SDR detected" rtl=1
rtl=0 else
else echo "No RTL-SDR detected"
echo "RTL-SDR detected." rtl=0
rtl=1 fi
fi
sudo killall -9 rtl_test &>/dev/null
fi fi
FILE=/home/pi/CubeSatSim/battery_saver FILE=/home/pi/CubeSatSim/battery_saver
if [ -f "$FILE" ]; then if [ -f "$FILE" ]; then
safe=1 safe=1
fi fi
value=`cat /home/pi/CubeSatSim/.mode` value=`cat /home/pi/CubeSatSim/.mode`
@ -330,8 +317,6 @@ else
fi fi
sudo killall -9 rtl_test &>/dev/null
sleep 10 sleep 10
#echo "Stopping Pacsatsim" #echo "Stopping Pacsatsim"

Loading…
Cancel
Save

Powered by TurnKey Linux.