Update config Can't turn on C2C in mode n

send-commands
Alan Johnston 2 months ago committed by GitHub
parent 6a6689f0bc
commit 7967cb6020
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -612,7 +612,7 @@ elif [ "$1" = "-T" ]; then
echo
if [ "$reset" = "y" ] || [ "$reset" = "yes" ] ; then
echo "Command and control set to OFF"
echo "Turning command and control OFF"
sudo rm /home/pi/CubeSatSim/command_control > /dev/null 2>&1
# reboot=1
echo "restarting command and control"
@ -630,7 +630,13 @@ elif [ "$1" = "-T" ]; then
echo
if [ "$reset" = "y" ] || [ "$reset" = "yes" ] ; then
echo "Command and control set to ON"
value=`cat /home/pi/CubeSatSim/.mode`
echo "$value" > /dev/null
set -- $value
if [ "$1" != "n" ] ; then
echo "Turning command and control ON"
sudo touch /home/pi/CubeSatSim/command_control
echo "restarting command and control"
# reboot=1
@ -638,6 +644,9 @@ elif [ "$1" = "-T" ]; then
echo "restarting transmit"
sudo systemctl restart transmit
## sudo reboot now
else
echo "Can't turn on Command and control in Transmit Commands mode."
fi
fi
fi

Loading…
Cancel
Save

Powered by TurnKey Linux.