Update config save as new

send-commands
Alan Johnston 1 month ago committed by GitHub
parent 244a27801b
commit 8fcee2b535
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1108,15 +1108,17 @@ elif [ "$1" = "-n" ]; then
# echo "changing CubeSatSim to Transmit Commands mode" # echo "changing CubeSatSim to Transmit Commands mode"
new=$2
value=`cat /home/pi/CubeSatSim/.mode` value=`cat /home/pi/CubeSatSim/.mode`
echo "$value" > /dev/null echo "$value" > /dev/null
set -- $value set -- $value
if [ "$1" = "n" ]; then if [ "$1" = "n" ]; then
echo "Turning Transmit Commands mode OFF" echo "Turning Transmit Commands mode OFF"
if [ "$2" = "a" ] || [ "$2" = "f" ] || [ "$2" = "b" ] || [ "$2" = "s" ] || [ "$2" = "m" ] || [ "$2" = "e" ] || [ "$2" = "j" ] ; then if [ "$new" = "a" ] || [ "$new" = "f" ] || [ "$new" = "b" ] || [ "$new" = "s" ] || [ "$new" = "m" ] || [ "$new" = "e" ] || [ "$new" = "j" ] ; then
echo "Switching to mode "$2 echo "Switching to mode "$2
sudo echo $2 > /home/pi/CubeSatSim/.mode sudo echo $new > /home/pi/CubeSatSim/.mode
restart=1 restart=1
else else
echo "Switching to BPSK mode" echo "Switching to BPSK mode"

Loading…
Cancel
Save

Powered by TurnKey Linux.