pinebuds/uart_log.sh

7 lines
96 B
Bash

#! /bin/bash
num=$(ls -l /dev/ttyUSB* | rev | cut -c 1)
#num=1
echo $num
sudo minicom port$num