pinebuds/uart_log.sh

6 lines
97 B
Bash
Executable File

#!/bin/sh
num=$(find /dev -name 'ttyUSB*' | rev | cut -c 1)
echo "$num"
sudo minicom "port$num"