pinebuds/uart_log.sh

6 lines
105 B
Bash
Executable File

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