# HG changeset patch # User Giulio Moro # Date 1460946124 -3600 # Node ID 0357b8df93a5120567dca0c76fc00efb5eae2277 # Parent db76215feb69667f5816fe937e6e95e9c773da77 Updated setup_board.sh to copy libpd.so diff -r db76215feb69 -r 0357b8df93a5 scripts/setup_board.sh --- 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"