|
|
|
|
@ -1370,7 +1370,7 @@ elif [ "$1" = "-g" ]; then
|
|
|
|
|
|
|
|
|
|
if [ "$rset" = "y" ] || [ "$rset" = "yes" ] ; then
|
|
|
|
|
|
|
|
|
|
echo "Resetting"
|
|
|
|
|
echo "Resetting and shutting down."
|
|
|
|
|
|
|
|
|
|
echo "AMSAT 0 0 0 no 3 434.9 435 no 0 0" > /home/pi/CubeSatSim/sim.cfg
|
|
|
|
|
|
|
|
|
|
@ -1386,6 +1386,8 @@ elif [ "$1" = "-g" ]; then
|
|
|
|
|
|
|
|
|
|
sudo echo "0" > /home/pi/CubeSatSim/command_count.txt
|
|
|
|
|
|
|
|
|
|
sudo rm /home/pi/CubeSatSim/failure_mode.txt > /dev/null 2>&1
|
|
|
|
|
|
|
|
|
|
sudo systemctl stop cubesatsim
|
|
|
|
|
sudo systemctl stop transmit
|
|
|
|
|
sudo systemctl stop command
|
|
|
|
|
@ -1399,6 +1401,8 @@ elif [ "$1" = "-g" ]; then
|
|
|
|
|
|
|
|
|
|
cat /dev/null > ~/.bash_history && history -c
|
|
|
|
|
|
|
|
|
|
sudo shutdown now
|
|
|
|
|
|
|
|
|
|
# reboot=1
|
|
|
|
|
else
|
|
|
|
|
|
|
|
|
|
|