comparison scripts/setup_board.sh @ 63:3ada83df91a5 newapi

Support stopping looped BeagleRT programs running within screen
author andrewm
date Wed, 15 Jul 2015 19:46:51 +0100
parents 3ffafa57302c
children b89dd0c97a04
comparison
equal deleted inserted replaced
62:a11e23f4e6af 63:3ada83df91a5
42 echo 42 echo
43 if [[ $REPLY =~ ^[Yy]$ ]] 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 "kill -s 2 \`pidof BeagleRT\` 2>/dev/null ; sleep 0.5 ; rm -rf $BBB_PATH ; mkdir $BBB_PATH" 47 ssh $BBB_ADDRESS "screen -X -S BeagleRT quit ; 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