Update config reverting - only restart on all mode changes

pull/327/head
Alan Johnston 1 year ago committed by GitHub
parent f8b0b91ec8
commit 98dc0ad3b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -365,8 +365,7 @@ elif [ "$1" = "-a" ]; then
echo "changing CubeSatSim to AFSK mode" echo "changing CubeSatSim to AFSK mode"
sudo echo "a" > /home/pi/CubeSatSim/.mode sudo echo "a" > /home/pi/CubeSatSim/.mode
# if [ "$1" == "f" ] || [ "$1" == "b" ] ; then if [ "$1" == "f" ] || [ "$1" == "b" ] ; then
if [ "$1" == "f" ] ; then
# restart=1 # restart=1
reboot=1 reboot=1
else else
@ -388,10 +387,9 @@ elif [ "$1" = "-m" ]; then
echo "changing CubeSatSim to CW mode" echo "changing CubeSatSim to CW mode"
sudo echo "m" > /home/pi/CubeSatSim/.mode sudo echo "m" > /home/pi/CubeSatSim/.mode
# if [ "$1" == "f" ] || [ "$1" == "b" ] ; then if [ "$1" == "f" ] || [ "$1" == "b" ] ; then
if [ "$1" == "f" ] ; then # reboot=1
reboot=1 restart=1
# restart=1
else else
restart=1 restart=1
fi fi
@ -1408,5 +1406,3 @@ if [ "$restart" = "1" ] ; then
echo "Restart needed for changes to take effect" echo "Restart needed for changes to take effect"
fi fi
fi fi

Loading…
Cancel
Save

Powered by TurnKey Linux.