Update config shutdown with -g

master
Alan Johnston 1 week ago committed by GitHub
parent b5f1aabde8
commit aba6b4abb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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
@ -1384,7 +1384,9 @@ elif [ "$1" = "-g" ]; then
sudo rm /home/pi/CubeSatSim/beacon_off > /dev/null 2>&1
sudo echo "0" > /home/pi/CubeSatSim/command_count.txt
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
@ -1399,6 +1401,8 @@ elif [ "$1" = "-g" ]; then
cat /dev/null > ~/.bash_history && history -c
sudo shutdown now
# reboot=1
else

Loading…
Cancel
Save

Powered by TurnKey Linux.