Update config set MODE variable

master-b-p
Alan Johnston 5 days ago committed by GitHub
parent 303ea59836
commit 02dd72841a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -144,6 +144,7 @@ if [ "$1" = "" ]; then
value=`cat /home/pi/CubeSatSim/.mode` value=`cat /home/pi/CubeSatSim/.mode`
echo "$value" > /dev/null echo "$value" > /dev/null
set -- $value set -- $value
MODE=$1
if [ "$1" = "a" ]; then if [ "$1" = "a" ]; then
echo "Mode is APRS" echo "Mode is APRS"
@ -279,8 +280,8 @@ if [ "$1" = "" ]; then
# cat /home/pi/CubeSatSim/command_tx # cat /home/pi/CubeSatSim/command_tx
# echo # echo
echo $1 echo $MODE
if [ "$1" = "p" ] || [ "$1" = "P" ] ; then if [ "$MODE" = "p" ] || [ "$MODE" = "P" ] ; then
echo "Squelch is off since PacSat or PacSat Ground Station mode" echo "Squelch is off since PacSat or PacSat Ground Station mode"
else else
echo -n "Squelch level is: " echo -n "Squelch level is: "

Loading…
Cancel
Save

Powered by TurnKey Linux.