diff --git a/config b/config index 2d9be60a..3834838c 100755 --- a/config +++ b/config @@ -1322,10 +1322,20 @@ elif [ "$1" = "-v" ]; then elif [ "$1" = "-e" ]; then - echo "changing CubeSatSim to Repeater mode" - sudo echo "e" > /home/pi/CubeSatSim/.mode + value=`cat /home/pi/CubeSatSim/.mode` + echo "$value" > /dev/null + set -- $value - restart=1 + if [ "$1" == "n" ]; then + + transmit_command_repeater + + else + + echo "changing CubeSatSim to Repeater mode" + sudo echo "e" > /home/pi/CubeSatSim/.mode + restart=1 + fi elif [ "$1" = "-n" ]; then @@ -1501,6 +1511,19 @@ elif [ "$1" = "-j" ]; then echo "$value" > /dev/null set -- $value + if [ "$1" == "n" ]; then + + transmit_command_funcube + + else + + value=`cat /home/pi/CubeSatSim/.mode` + echo "$value" > /dev/null + set -- $value + restart=1 + + fi + # if [ "$1" == "n" ]; then # transmit_command_bpsk