diff --git a/groundstation/fox-startup.sh b/groundstation/fox-startup.sh index 7e299d0c..cb0467c2 100755 --- a/groundstation/fox-startup.sh +++ b/groundstation/fox-startup.sh @@ -35,23 +35,21 @@ if [ ! -f "$FILE" ]; then fi -else - - value=`cat /home/pi/CubeSatSim/groundstation/.profile` - echo "$value" > /dev/null - set -- $value - - if [ "$1" = "b" ]; then - echo "Fox-in-a-box profile is set!" - elif [ "$1" = "c" ]; then - echo "CubeSatSim Ground Station profile is set!" - fi +fi -fi +value=`cat /home/pi/CubeSatSim/groundstation/.profile` +echo "$value" > /dev/null +set -- $value sudo killall -9 java &>/dev/null -/home/pi/Downloads/FoxTelem/FoxTelem & +if [ "$1" = "c" ]; then + echo "CubeSatSim Ground Station profile is set!" + /home/pi/Downloads/FoxTelem/FoxTelem & +else + echo "Fox-in-a-box profile is set!" + /home/pi/Downloads/FoxTelem-FITB/FoxTelem /home/pi/Documents/FITB +fi $SHELL