Mercurial > hg > beaglert
comparison scripts/setup_board.sh @ 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 | 91e1a3a220d4 |
children | dbeed520b014 |
comparison
equal
deleted
inserted
replaced
242:db76215feb69 | 243:0357b8df93a5 |
---|---|
36 | 36 |
37 # Find location of this script so we can locate the rest of the files | 37 # Find location of this script so we can locate the rest of the files |
38 SCRIPTPATH=$(readlink -f "$0") | 38 SCRIPTPATH=$(readlink -f "$0") |
39 SCRIPTDIR=$(dirname "$SCRIPTPATH") | 39 SCRIPTDIR=$(dirname "$SCRIPTPATH") |
40 | 40 |
41 read -p "Warning: this script will DELETE any existing BeagleRT files from your BeagleBone! Continue? " -n 1 -r | 41 read -p "Warning: this script will DELETE any existing BeagleRT files from your BeagleBone! Continue? (y/N)" -r |
42 echo | 42 echo |
43 if [[ $REPLY = y ]] | 43 if [[ $REPLY = [yY] ]] |
44 then | 44 then |
45 # Stop BeagleRT if running and remove all files | 45 # Stop BeagleRT if running and remove all files |
46 echo "Stopping BeagleRT and removing old files." | 46 echo "Stopping BeagleRT and removing old files." |
47 ssh $BBB_ADDRESS "screen -X -S BeagleRT quit &>/dev/null; pkill BeagleRT; sleep 0.5 ; rm -rf $BBB_PATH ; mkdir $BBB_PATH" | 47 ssh $BBB_ADDRESS "screen -X -S BeagleRT quit &>/dev/null; pkill BeagleRT; sleep 0.5 ; rm -rf $BBB_PATH ; mkdir $BBB_PATH" |
48 | 48 |
49 # Copy relevant files to BeagleBone Black | 49 # Copy relevant files to BeagleBone Black |
50 echo "Copying new files to BeagleBone..." | 50 echo "Copying new files to BeagleBone..." |
51 scp -r $SCRIPTDIR/../core $SCRIPTDIR/../include $SCRIPTDIR/../Makefile $SCRIPTDIR/../libNE10.a $SCRIPTDIR/../libprussdrv.a $BBB_ADDRESS:$BBB_PATH | 51 scp -r $SCRIPTDIR/../core $SCRIPTDIR/../include $SCRIPTDIR/../Makefile $SCRIPTDIR/../libNE10.a $SCRIPTDIR/../libprussdrv.a $BBB_ADDRESS:$BBB_PATH &&\ |
52 | 52 scp $SCRIPTDIR/../libpd.so $BBB_ADDRESS:/usr/lib |
53 if [ $? -ne 0 ] | 53 if [ $? -ne 0 ] |
54 then | 54 then |
55 echo "Error while copying files" | 55 echo "Error while copying files" |
56 exit | 56 exit |
57 fi | 57 fi |