summaryrefslogtreecommitdiffstats
path: root/lava-slave/scripts/cu-loop
diff options
context:
space:
mode:
authorTyler Baker <forcedinductionz@gmail.com>2017-10-25 08:13:48 -0700
committerGitHub <noreply@github.com>2017-10-25 08:13:48 -0700
commitceb64a544ae771e2e1d1a41e46a59c6f0a9de060 (patch)
tree0e3aac8edbfd28384469190795fab4e9d07cb9ec /lava-slave/scripts/cu-loop
parentee8ef7b266fe45f2f2bc3ea6a8759e012b021e40 (diff)
parent26cc005179760bd25b8bdd724a936847c81d24eb (diff)
Merge pull request #9 from montjoie/dockercompose
Dockercompose
Diffstat (limited to 'lava-slave/scripts/cu-loop')
-rwxr-xr-xlava-slave/scripts/cu-loop11
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
+