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

23 lines
382 B
Bash
Raw Normal View History

#!/bin/sh
pid=`pgrep pseudoterm`
if test "$pid" = "" ; then
2015-05-10 08:56:32 +02:00
echo " Pseudoterm not running."
else
2015-05-10 08:56:32 +02:00
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