Mercurial > hg > beaglert
annotate scripts/stop_running.sh @ 59:5bdf6efbd0ed newapi
Added a script for enabling/disabling BeagleRT at startup. Only works with the matching SD image that looks for /root/BeagleRT_startup.sh
author | andrewm |
---|---|
date | Wed, 15 Jul 2015 17:50:09 +0100 |
parents | 3ffafa57302c |
children | 3ada83df91a5 |
rev | line source |
---|---|
andrewm@58 | 1 #!/bin/bash |
andrewm@58 | 2 # |
andrewm@58 | 3 # This script stops the BeagleRT program running on the BeagleBone. |
andrewm@58 | 4 |
andrewm@58 | 5 BBB_ADDRESS="root@192.168.7.2" |
andrewm@58 | 6 |
andrewm@58 | 7 echo "Stopping BeagleRT..." |
andrewm@58 | 8 ssh $BBB_ADDRESS "kill -s 2 \`pidof BeagleRT\` 2>/dev/null" |