Mercurial > hg > beaglert
changeset 243:0357b8df93a5
Updated setup_board.sh to copy libpd.so
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Mon, 18 Apr 2016 03:22:04 +0100 |
parents | db76215feb69 |
children | b0ad11ec5d50 |
files | scripts/setup_board.sh |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/setup_board.sh Mon Apr 18 03:05:45 2016 +0100 +++ b/scripts/setup_board.sh Mon Apr 18 03:22:04 2016 +0100 @@ -38,9 +38,9 @@ SCRIPTPATH=$(readlink -f "$0") SCRIPTDIR=$(dirname "$SCRIPTPATH") -read -p "Warning: this script will DELETE any existing BeagleRT files from your BeagleBone! Continue? " -n 1 -r +read -p "Warning: this script will DELETE any existing BeagleRT files from your BeagleBone! Continue? (y/N)" -r echo -if [[ $REPLY = y ]] +if [[ $REPLY = [yY] ]] then # Stop BeagleRT if running and remove all files echo "Stopping BeagleRT and removing old files." @@ -48,8 +48,8 @@ # Copy relevant files to BeagleBone Black echo "Copying new files to BeagleBone..." - scp -r $SCRIPTDIR/../core $SCRIPTDIR/../include $SCRIPTDIR/../Makefile $SCRIPTDIR/../libNE10.a $SCRIPTDIR/../libprussdrv.a $BBB_ADDRESS:$BBB_PATH - + scp -r $SCRIPTDIR/../core $SCRIPTDIR/../include $SCRIPTDIR/../Makefile $SCRIPTDIR/../libNE10.a $SCRIPTDIR/../libprussdrv.a $BBB_ADDRESS:$BBB_PATH &&\ + scp $SCRIPTDIR/../libpd.so $BBB_ADDRESS:/usr/lib if [ $? -ne 0 ] then echo "Error while copying files"