Update config always restart when changing Doppler mode

master-bf-pre3
Alan Johnston 5 days ago committed by GitHub
parent d5440172be
commit 5fd5ec7560
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1969,6 +1969,7 @@ elif [ "$1" = "-K" ]; then
value=`cat /home/pi/CubeSatSim/sim.cfg`
echo "$value" > /dev/null
set -- $value
doppler="${14}"
if [ "${14}" = "sim" ] ; then
echo "Simulated Doppler frequency shift mode enabled"
@ -2015,11 +2016,11 @@ elif [ "$1" = "-K" ]; then
echo "$value" > /dev/null
set -- $value
if [[ ( "$sim" == "y" || "$sim" == "yes" ) && ( "$1" == "m" ) && ( "$doppler" == "no" ) ]] ; then
reboot=1
else
# if [[ ( "$doppler" == "y" || "$doppler" == "yes" ) && ( "$1" == "m" ) && ( "$doppler" == "no" ) ]] ; then
# reboot=1
# else
restart=1
fi
# fi
elif [ "$1" = "-h" ]; then

Loading…
Cancel
Save

Powered by TurnKey Linux.