diff 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
line wrap: on
line diff
--- a/scripts/setup_board.sh	Wed Jul 15 19:40:15 2015 +0100
+++ b/scripts/setup_board.sh	Wed Jul 15 19:46:51 2015 +0100
@@ -44,7 +44,7 @@
 then
 # Stop BeagleRT if running and remove all files
   echo "Stopping BeagleRT and removing old files." 
-  ssh $BBB_ADDRESS "kill -s 2 \`pidof BeagleRT\` 2>/dev/null ; sleep 0.5 ; rm -rf $BBB_PATH ; mkdir $BBB_PATH"
+  ssh $BBB_ADDRESS "screen -X -S BeagleRT quit ; pkill BeagleRT ; sleep 0.5 ; rm -rf $BBB_PATH ; mkdir $BBB_PATH"
 
 # Copy relevant files to BeagleBone Black
   echo "Copying new files to BeagleBone..."