#!/bin/sh
# Program: stopplayslave (demo example) by mcewanw
# Create a symlink to this script named "stopplayslave".

# This demo plugin script will then be activated by the stopplay button and 
# will terminate the main demo plugin script which you must symlink as
# "playslave" such that that main demo plugin is activated by the play button.

kill -TERM $(cat /tmp/precord/PIDplayslave 2>/dev/null) 2>/dev/null 