Update config more reboot instead of restart

beta-drop
Alan Johnston 2 years ago committed by GitHub
parent f5d5270a79
commit e8cb18054a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -570,10 +570,11 @@ elif [ "$1" = "-q" ]; then
echo $1 $2 $3 $4 $5 $sq $7 $8 $9 echo $1 $2 $3 $4 $5 $sq $7 $8 $9
echo $1 $2 $3 $4 $4 $sq $7 $8 $9 > /home/pi/CubeSatSim/sim.cfg echo $1 $2 $3 $4 $4 $sq $7 $8 $9 > /home/pi/CubeSatSim/sim.cfg
echo echo
echo "Restarting CubeSatSim with new configuration file" echo "Rebooting CubeSatSim with new configuration file"
echo echo
sudo systemctl restart cubesatsim sudo reboot now
# sudo systemctl restart cubesatsim
elif [ "$1" = "-F" ]; then elif [ "$1" = "-F" ]; then
@ -627,9 +628,10 @@ elif [ "$1" = "-F" ]; then
# echo # echo
# else # else
echo echo
echo "Restarting CubeSatSim with new configuration file" echo "Rebooting CubeSatSim with new configuration file"
echo echo
sudo systemctl restart cubesatsim sudo reboot now
# sudo systemctl restart cubesatsim
# fi # fi
elif [ "$1" = "-H" ]; then elif [ "$1" = "-H" ]; then
@ -670,10 +672,11 @@ elif [ "$1" = "-H" ]; then
echo $1 $2 $3 $4 $5 $6 $7 $8 $hab echo $1 $2 $3 $4 $5 $6 $7 $8 $hab
echo $1 $2 $3 $4 $5 $6 $7 $8 $hab > /home/pi/CubeSatSim/sim.cfg echo $1 $2 $3 $4 $5 $6 $7 $8 $hab > /home/pi/CubeSatSim/sim.cfg
echo echo
echo "Restarting CubeSatSim with new configuration file" echo "Rebooting CubeSatSim with new configuration file"
echo echo
sudo systemctl restart cubesatsim sudo reboot now
# sudo systemctl restart cubesatsim
elif [ "$1" = "-p" ]; then elif [ "$1" = "-p" ]; then

Loading…
Cancel
Save

Powered by TurnKey Linux.