Update config -n toggles transmit C&C mode

pull/327/head
Alan Johnston 1 year ago committed by GitHub
parent 924b70bfa7
commit 32b8cced1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1207,9 +1207,21 @@ elif [ "$1" = "-e" ]; then
elif [ "$1" = "-n" ]; then elif [ "$1" = "-n" ]; then
echo "changing CubeSatSim to Transmit Command and Control mode" echo "changing CubeSatSim to Transmit Command and Control mode"
sudo echo "n" > /home/pi/CubeSatSim/.mode
restart=1 value=`cat /home/pi/CubeSatSim/.mode`
echo "$value" > /dev/null
set -- $value
if [ "$1" = "n" ]; then
echo "Turning Transmit Command and Control mode OFF"
echo "Switching to FSK mode"
sudo echo "f" > /home/pi/CubeSatSim/.mode
reboot=1
else
echo "Turning Transmit Command and Control mode ON"
sudo echo "n" > /home/pi/CubeSatSim/.mode
restart=1
fi
elif [ "$1" = "-A" ]; then elif [ "$1" = "-A" ]; then

Loading…
Cancel
Save

Powered by TurnKey Linux.