added -c for change callsign

pull/85/head
alanbjohnston 5 years ago committed by GitHub
parent 869be3c524
commit b5376bfaf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -49,25 +49,37 @@ elif [ "$1" = "-h" ]; then
echo echo
exit exit
elif [ "$1" = "-m" ]; then elif [ "$1" = "-c" ]; then
echo -e "\nConfiguration script for CubeSatSim\n" echo
echo -e "Return keeps current value." echo "Editing the CALLSIGN in the"
echo -e "Current sim.cfg configuration file: \n" echo "configuration file for CubeSatSim"
value=`cat sim.cfg` echo
echo "$value" echo "Return keeps current value."
echo # echo -e "Current sim.cfg configuration file:"
# echo
value=`cat sim.cfg`
echo "$value" > /dev/null
set -- $value set -- $value
echo "Current value of CALLSIGN is"
echo $1
echo
# echo $1 $2 $3 $4 # echo $1 $2 $3 $4
echo -e "Input callsign (all capitals): " echo -e "Enter callsign in all capitals: "
read callsign read callsign

Loading…
Cancel
Save

Powered by TurnKey Linux.