Blame view

RIOT/boards/msba2-common/tools/termctrl.sh 382 Bytes
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  #!/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