summaryrefslogtreecommitdiffstats
path: root/lava-slave/scripts/cu-loop
blob: fbe5777bcce3effd4bb3f359a430788d72963715 (plain)
1
2
3
4
5
6
7
8
9
10
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