Update config remove start and stop gpsd for -F

master-fsk-cw
Alan Johnston 2 months ago committed by GitHub
parent 1a5cf4debb
commit cbc78e4a2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1092,17 +1092,17 @@ elif [ "$1" = "-F" ]; then
echo echo
echo "Restarting CubeSatSim with new configuration file" echo "Restarting CubeSatSim with new configuration file"
if [[ $(sudo systemctl is-active gpsd.socket | grep inactive) ]]; then # if [[ $(sudo systemctl is-active gpsd.socket | grep inactive) ]]; then
sudo systemctl restart transmit sudo systemctl restart transmit
else # else
echo # echo
echo "temporarily disabling gpsd and rebooting to program FM module" # echo "temporarily disabling gpsd and rebooting to program FM module"
echo "this will take about 40 seconds" # echo "this will take about 40 seconds"
sudo systemctl stop gpsd.socket # sudo systemctl stop gpsd.socket
sudo systemctl restart transmit sudo systemctl restart transmit
sleep 10 # sleep 10
reboot=1 # reboot=1
fi # fi
elif [ "$1" = "-o" ]; then elif [ "$1" = "-o" ]; then

Loading…
Cancel
Save

Powered by TurnKey Linux.