|
|
|
@ -1188,24 +1188,24 @@ elif [ "$1" = "-F" ]; then
|
|
|
|
rx="$8"
|
|
|
|
rx="$8"
|
|
|
|
echo "Keeping value of" $rx
|
|
|
|
echo "Keeping value of" $rx
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
# else
|
|
|
|
echo -e "\nCubeSatSim configuration sim.cfg file updated to: \n"
|
|
|
|
|
|
|
|
|
|
|
|
echo -e "\nCubeSatSim configuration sim.cfg file updated to: \n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo $1 $2 $3 $4 $5 $6 $tx $rx $9 ${10} ${11} ${12} ${13}
|
|
|
|
echo $1 $2 $3 $4 $5 $6 $tx $rx $9 ${10} ${11} ${12} ${13}
|
|
|
|
echo $1 $2 $3 $4 $5 $6 $tx $rx $9 ${10} ${11} ${12} ${13} > /home/pi/CubeSatSim/sim.cfg
|
|
|
|
echo $1 $2 $3 $4 $5 $6 $tx $rx $9 ${10} ${11} ${12} ${13} > /home/pi/CubeSatSim/sim.cfg
|
|
|
|
# fi
|
|
|
|
|
|
|
|
|
|
|
|
echo
|
|
|
|
# if [ "$norestart" = "1" ]; then
|
|
|
|
echo "Restarting CubeSatSim with new configuration file"
|
|
|
|
# echo
|
|
|
|
|
|
|
|
# else
|
|
|
|
if [[ $(sudo systemctl is-active gpsd.socket | grep inactive) ]]; then
|
|
|
|
|
|
|
|
sudo systemctl restart transmit
|
|
|
|
|
|
|
|
else
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo "Restarting CubeSatSim with new configuration file"
|
|
|
|
echo "temporarily disabling gpsd and rebooting to program FM module"
|
|
|
|
## echo
|
|
|
|
sudo systemctl stop gpsd.socket
|
|
|
|
# reboot=1
|
|
|
|
|
|
|
|
## sudo reboot now
|
|
|
|
|
|
|
|
sudo systemctl restart transmit
|
|
|
|
sudo systemctl restart transmit
|
|
|
|
# fi
|
|
|
|
sleep 10
|
|
|
|
|
|
|
|
restart=1
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
elif [ "$1" = "-o" ]; then
|
|
|
|
elif [ "$1" = "-o" ]; then
|
|
|
|
|
|
|
|
|
|
|
|
@ -1778,7 +1778,6 @@ elif [ "$1" = "-u" ]; then
|
|
|
|
echo "Change gpsd state"
|
|
|
|
echo "Change gpsd state"
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
|
|
|
|
|
|
|
|
FILE=/home/pi/CubeSatSim/command_control
|
|
|
|
|
|
|
|
if [[ $(sudo systemctl is-active gpsd.socket | grep inactive) ]]; then
|
|
|
|
if [[ $(sudo systemctl is-active gpsd.socket | grep inactive) ]]; then
|
|
|
|
echo "gpsd is inactive"
|
|
|
|
echo "gpsd is inactive"
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
|