|
|
|
|
@ -632,25 +632,13 @@ elif [ "$1" = "-c" ]; then
|
|
|
|
|
if [ -z $callsign ] ; then
|
|
|
|
|
callsign="$1"
|
|
|
|
|
echo "Keeping value of" $callsign
|
|
|
|
|
norestart=1
|
|
|
|
|
else
|
|
|
|
|
|
|
|
|
|
restart=1
|
|
|
|
|
echo -e "\nCubeSatSim configuration sim.cfg file updated to: \n"
|
|
|
|
|
|
|
|
|
|
echo $callsign $2 $3 $4 $5 $6 $7 $8 $9 ${10} ${11} ${12} ${13} ${14}
|
|
|
|
|
echo $callsign $2 $3 $4 $5 $6 $7 $8 $9 ${10} ${11} ${12} ${13} ${14} > /home/pi/CubeSatSim/sim.cfg
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ "$norestart" = "1" ]; then
|
|
|
|
|
echo
|
|
|
|
|
else
|
|
|
|
|
echo
|
|
|
|
|
## echo "Rebooting CubeSatSim with new configuration file"
|
|
|
|
|
## echo
|
|
|
|
|
reboot=1
|
|
|
|
|
## sudo reboot now
|
|
|
|
|
# sudo systemctl restart cubesatsim
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
elif [ "$1" = "-r" ]; then
|
|
|
|
|
|
|
|
|
|
|