From 04d965d67a7264a1c7c211494aebda1953df7603 Mon Sep 17 00:00:00 2001 From: "info@mode42.com" Date: Fri, 7 Aug 2026 18:25:13 +0000 Subject: Initial push --- stacks/tncs/tnc2c-boot-wait.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 stacks/tncs/tnc2c-boot-wait.sh (limited to 'stacks/tncs/tnc2c-boot-wait.sh') diff --git a/stacks/tncs/tnc2c-boot-wait.sh b/stacks/tncs/tnc2c-boot-wait.sh new file mode 100755 index 0000000..ac101c1 --- /dev/null +++ b/stacks/tncs/tnc2c-boot-wait.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# TNC2C boot-wait — Landolt TNC2C, typically 19200 8N1, DTR during power-on +set -euo pipefail +ROOT="$(cd "$(dirname "$0")" && pwd)" +# shellcheck source=load-serial-env.sh +source "${ROOT}/load-serial-env.sh" +load_serial_env tnc2c "${ROOT}" || true +apply_tnc2c_env +if [[ -n "${SERIAL_ENV_FILE:-}" ]]; then + echo "Using serial env: ${SERIAL_ENV_FILE}" >&2 +else + echo "WARN: no tnc2c-serial.env found — using ${TNC_DEV} ${TNC_BAUD} ${TNC_LINE}" >&2 +fi +exec python3 "${ROOT}/tnc2c-boot-wait.py" "${TNC_DEV}" --baud "${TNC_BAUD}" --line "${TNC_LINE}" "$@" -- cgit v1.3.1