pinebuds/uart_log.sh

6 lines
93 B
Bash
Executable File

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