X-Git-Url: http://git.rot13.org/?p=digitaldcpower;a=blobdiff_plain;f=run-picocom.sh;fp=run-picocom.sh;h=5128c48965f36716ceab613d3a7c9feae208d2aa;hp=0000000000000000000000000000000000000000;hb=acad8bfa5f02f5116d0d96f8553df9348347494b;hpb=cff29240303d385ea5e4cd2d6016774662218b4d diff --git a/run-picocom.sh b/run-picocom.sh new file mode 100755 index 0000000..5128c48 --- /dev/null +++ b/run-picocom.sh @@ -0,0 +1,8 @@ +#!/bin/sh -x +echo "End picocom with C-A C-X" +ftdidev=`grep FTDI /proc/bus/usb/devices | wc -l` +if [ "$ftdidev" = "2" ]; then + picocom -l -b 9600 /dev/ttyUSB1 +else + picocom -l -b 9600 /dev/ttyUSB0 +fi