Update config with -N next mode

sim-fail-4
Alan Johnston 4 months ago committed by GitHub
parent c3a25e579e
commit 6ff74af6d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1622,6 +1622,46 @@ elif [ "$1" = "-M" ]; then
echo
echo $MODE > /home/pi/CubeSatSim/failure_mode.txt
elif [ "$1" = "-N" ]; then
echo "Next mode"
value=`cat /home/pi/CubeSatSim/.mode`
echo "$value" > /dev/null
set -- $value
if [ "$1" = "a" ]; then
echo "Current mode is APRS"
echo "Next mode is FSK"
/home/pi/CubeSatSim/config -f
elif [ "$1" = "m" ]; then
echo "Current mode is CW"
echo "Next mode is FunCube"
/home/pi/CubeSatSim/config -j
elif [ "$1" = "f" ]; then
echo "Current mode is FSK"
echo "Next mode is BPSK"
/home/pi/CubeSatSim/config -b
elif [ "$1" = "b" ]; then
echo "Current mode is BPSK"
echo "Next mode is SSTV"
/home/pi/CubeSatSim/config -s
elif [ "$1" = "s" ]; then
echo "Current mode is SSTV"
echo "Next mode is CW"
/home/pi/CubeSatSim/config -m
elif [ "$1" = "e" ]; then
echo "Current mode is Repeater"
echo "Next mode is APRS"
/home/pi/CubeSatSim/config -a
elif [ "$1" = "j" ]; then
echo "Current mode is FUNcube"
echo "Next mode is Repeater"
/home/pi/CubeSatSim/config -e
else
echo "Unknown mode"
fi
elif [ "$1" = "-h" ]; then
echo "config OPTION"
@ -1660,7 +1700,7 @@ elif [ "$1" = "-h" ]; then
echo " -L Change microphone level for command and control"
echo " -g Reset configuration back to default settings"
echo " -M Set simulated failure mode"
echo " -N Set next mode"
echo
exit

Loading…
Cancel
Save

Powered by TurnKey Linux.