Update pacsat.sh with tests for sound card, txc, and rtl

master-b-p-s
Alan Johnston 2 weeks ago committed by GitHub
parent 86a17ea38e
commit 53b7455e2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -28,6 +28,32 @@ else
fi fi
if [[ $(arecord -l | grep "USB Audio Device") ]] ; then
echo "USB Sound Card detected"
soundcard=1
else
echo "No USB Sound Card detected"
soundcard=0
fi
gpio -g mode 7 up
if [[ $(gpio -g read 7 | grep 0) ]] ; then
echo "TXC is present"
txc=1
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
fi
FILE=/home/pi/CubeSatSim/battery_saver FILE=/home/pi/CubeSatSim/battery_saver
if [ -f "$FILE" ]; then if [ -f "$FILE" ]; then

Loading…
Cancel
Save

Powered by TurnKey Linux.