Mercurial > hg > beaglert
diff scripts/setup_board.sh @ 377:a430a16d2c02 prerelease
Updated scripts so that the Bela folder on the bbb is ~/Bela. Note: BeagleRT_startup.sh is still the same (because the reference to it needs to be changed in /etc/init.d/ ....
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Sat, 11 Jun 2016 01:54:43 +0100 |
parents | b49dc040af73 |
children | c29f07b7350e |
line wrap: on
line diff
--- a/scripts/setup_board.sh Fri Jun 10 00:56:49 2016 +0100 +++ b/scripts/setup_board.sh Sat Jun 11 01:54:43 2016 +0100 @@ -1,11 +1,11 @@ #!/bin/bash # -# This script copies the core BeagleRT files to the BeagleBone Black +# This script copies the core Bela files to the BeagleBone Black # in preparation for building projects. It will remove any existing -# BeagleRT directory before copying the files over +# Bela directory before copying the files over [ -z "$BBB_ADDRESS" ] && BBB_ADDRESS="root@192.168.7.2" -[ -z "$BBB_BELA_HOME" ] && BBB_BELA_HOME="~/BeagleRT/" +[ -z "$BBB_BELA_HOME" ] && BBB_BELA_HOME="~/Bela/" function usage { @@ -13,7 +13,7 @@ echo "Usage: $THIS_SCRIPT [-b path-on-beaglebone]" echo " - This script copies the core BeagleRT files to the BeagleBone, REMOVING + This script copies the core Bela files to the BeagleBone, REMOVING any previous files found at that location. This should be done before running any of the other build scripts in this directory. The -b option changes the default path, which is otherwise $BBB_BELA_HOME." @@ -30,7 +30,7 @@ esac done -echo "Copying BeagleRT core files to $BBB_BELA_HOME" +echo "Copying Bela core files to $BBB_BELA_HOME" shift $((OPTIND-1)) @@ -38,13 +38,13 @@ SCRIPTPATH=$(readlink "$0") SCRIPTDIR=$(dirname "$SCRIPTPATH") -read -p "Warning: this script will DELETE any existing BeagleRT files from your BeagleBone! Continue? (y/N) " -r +read -p "Warning: this script will DELETE any existing Bela files from your BeagleBone! Continue? (y/N) " -r echo if [[ $REPLY = [yY] ]] then -# Stop BeagleRT if running and remove all files - echo "Stopping BeagleRT and removing old files." - ssh $BBB_ADDRESS "screen -X -S BeagleRT quit &>/dev/null; pkill BeagleRT; sleep 0.5 ; rm -rf $BBB_BELA_HOME ; mkdir $BBB_BELA_HOME" +# Stop Bela if running and remove all files + echo "Stopping Bela and removing old files." + ssh $BBB_ADDRESS "screen -X -S Bela quit &>/dev/null; pkill Bela; sleep 0.5 ; rm -rf $BBB_BELA_HOME ; mkdir $BBB_BELA_HOME" # Copy relevant files to BeagleBone Black echo "Copying new files to BeagleBone..."