Update config -c restart

master-bo
Alan Johnston 2 months ago committed by GitHub
parent e646e618c5
commit 0509073dcb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save

Powered by TurnKey Linux.