docker-devtools/inspect/serial-log/init.sh

6 lines
152 B
Bash
Executable file

#!/bin/bash
set -x
SERIAL_DEV=$1
DEV_NAME=$(basename "${SERIAL_DEV}")
tio -m INLCRNL --log --log-file "ext-dir/serial-log.${DEV_NAME}" "${SERIAL_DEV}"