diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2017-10-25 13:45:56 +0200 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2017-10-25 14:11:58 +0200 |
commit | 905a723528e499e9eae193b4d72388076d561f6c (patch) | |
tree | 71286e054b5dc8ff32ebd72a3bd2f4d392a27cae /lava-slave/scripts/cu-loop | |
parent | 626402f90d0f8435e9268268180d46fe3b58f040 (diff) |
Add support for conmux
Diffstat (limited to 'lava-slave/scripts/cu-loop')
-rwxr-xr-x | lava-slave/scripts/cu-loop | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lava-slave/scripts/cu-loop b/lava-slave/scripts/cu-loop new file mode 100755 index 0000000..fbe5777 --- /dev/null +++ b/lava-slave/scripts/cu-loop @@ -0,0 +1,11 @@ +#!/bin/sh +DEV=$1 +BAUD=${2:-115200} + +while true; do + # NOTE: needs cu >= 1.07-24 + # c.f. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=336996 + test -e $DEV && cu -l $DEV -s $BAUD --parity=none --nostop --nortscts dir + sleep 0.2 +done + |