Update pacsat.sh only do rtl_test if no TXC

pull/428/head
Alan Johnston 1 week ago committed by GitHub
parent c4b2fd95c6
commit 08b31d5407
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -43,15 +43,18 @@ if [[ $(gpio -g read 7 | grep 0) ]] ; then
else
echo "TXC not present"
txc=0
fi
timeout 1 rtl_test &> out.txt
if [[ $(grep "No supported" out.txt) ]] ; then
echo "No RTL-SDR detected"
rtl=0
else
echo "RTL-SDR detected."
rtl=1
timeout 1 rtl_test &> out.txt
if [[ $(grep "No supported" out.txt) ]] ; then
echo "No RTL-SDR detected"
rtl=0
else
echo "RTL-SDR detected."
rtl=1
fi
sudo killall -9 rtl_test &>/dev/null
fi
FILE=/home/pi/CubeSatSim/battery_saver

Loading…
Cancel
Save

Powered by TurnKey Linux.