Update config to change frequency, disable gpsd

pi-sensors-auto-gps
Alan Johnston 2 days ago committed by GitHub
parent c6d4e69d3f
commit 563e2da48d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save

Powered by TurnKey Linux.