diff --git a/config b/config index 157cfda5..1eac704d 100755 --- a/config +++ b/config @@ -1769,12 +1769,10 @@ elif [ "$1" = "-U" ]; then echo $1 $2 $3 $4 $5 $6 $7 $8 $9 ${10} ${11} $sim $time echo $1 $2 $3 $4 $5 $6 $7 $8 $9 ${10} ${11} $sim $time > /home/pi/CubeSatSim/sim.cfg echo -## echo "Rebooting CubeSatSim with new configuration file" -## echo - reboot=1 -## sudo reboot now -# sudo restart cubesatsim + if [ "${12}" != "$sim" ]; then + reboot=1 + fi elif [ "$1" = "-h" ]; then