mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
23 lines
382 B
Bash
Executable File
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
|