Update command add uptime check before waiting 20s

fc-sub
Alan Johnston 7 months ago committed by GitHub
parent df04fea8c6
commit 475d3c468e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -35,9 +35,17 @@ else
fi fi
echo "Waiting 20 seconds for USB" uptime=`cat /proc/uptime | awk '{printf "%0.f", $1}'`
sleep 20 echo -n "Uptime since boot is "
echo $value
if [[ "$uptime" -lt "60" ]]; then
echo "Waiting 20 seconds for USB"
sleep 20
fi
FILE=/home/pi/CubeSatSim/command_control_direwolf FILE=/home/pi/CubeSatSim/command_control_direwolf
if [[ $(arecord -l | grep "USB Audio Device") ]] && [ -f "$FILE" ]; then if [[ $(arecord -l | grep "USB Audio Device") ]] && [ -f "$FILE" ]; then

Loading…
Cancel
Save

Powered by TurnKey Linux.