summaryrefslogtreecommitdiff
path: root/stacks/tncs/tnc2c-boot-wait.sh
diff options
context:
space:
mode:
authorinfo@mode42.com <info@mode42.com>2026-08-07 18:25:13 +0000
committerinfo@mode42.com <info@mode42.com>2026-08-07 18:25:13 +0000
commit04d965d67a7264a1c7c211494aebda1953df7603 (patch)
tree0ebd700a6e219f84a26a656f4bee8778bc75da7b /stacks/tncs/tnc2c-boot-wait.sh
Initial push
Diffstat (limited to 'stacks/tncs/tnc2c-boot-wait.sh')
-rwxr-xr-xstacks/tncs/tnc2c-boot-wait.sh14
1 files changed, 14 insertions, 0 deletions
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}" "$@"
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com