1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/msba2-common/tools/termctrl.sh
2015-05-18 07:10:41 +02:00

23 lines
382 B
Bash
Executable File

#!/bin/sh
pid=`pgrep pseudoterm`
if test "$pid" = "" ; then
echo " Pseudoterm not running."
else
if test "$1" = "continue" ; then
kill -s USR1 $pid;
elif test "$1" = "pause" ; then
kill -s USR2 $pid ;
elif test "$1" = "stop" ; then
kill $pid ;
else
echo "Usage:";
echo "termctrl.sh continue/pause/stop";
fi
fi