Update config remove extra code

send-commands
Alan Johnston 1 month ago committed by GitHub
parent 67768ae354
commit 48c68145e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -227,16 +227,7 @@ elif [ "$1" = "-a" ]; then
echo "changing CubeSatSim to AFSK mode"
check_restart
sudo echo "a" > /home/pi/CubeSatSim/.mode
# if [ "$1" == "f" ] || [ "$1" == "b" ] || [ "$1" == "e" ] || [ "$1" == "j" ] ; then
# FILE=/home/pi/CubeSatSim/battery_saver
# if [ -f "$FILE" ]; then
# restart=1
# else
# reboot=1
# fi
# else
# restart=1
# fi
fi
elif [ "$1" = "-m" ]; then
@ -254,16 +245,7 @@ elif [ "$1" = "-m" ]; then
echo "changing CubeSatSim to CW mode"
check_restart
sudo echo "m" > /home/pi/CubeSatSim/.mode
# if [ "$1" == "f" ] || [ "$1" == "b" ] || [ "$1" == "e" ] || [ "$1" == "j" ] ; then
# FILE=/home/pi/CubeSatSim/battery_saver
# if [ -f "$FILE" ]; then
# restart=1
# else
# reboot=1
# fi
# else
# restart=1
# fi
fi
elif [ "$1" = "-f" ]; then
@ -315,17 +297,7 @@ elif [ "$1" = "-s" ]; then
echo "changing CubeSatSim to SSTV mode"
check_restart
sudo echo "s" > /home/pi/CubeSatSim/.mode
# if [ "$1" == "f" ] || [ "$1" == "b" ] || [ "$1" == "e" ] || [ "$1" == "j" ] ; then
#
# FILE=/home/pi/CubeSatSim/battery_saver
# if [ -f "$FILE" ]; then
# restart=1
# else
# reboot=1
# fi
# else
# restart=1
# fi
fi
elif [ "$1" = "-t" ]; then

Loading…
Cancel
Save

Powered by TurnKey Linux.