#!/bin/bash
#
# This script stops the BeagleRT program running on the BeagleBone.

BBB_ADDRESS="root@192.168.7.2"

echo "Stopping BeagleRT..."
ssh $BBB_ADDRESS "kill -s 2 \`pidof BeagleRT\` 2>/dev/null"