summaryrefslogtreecommitdiff
path: root/tool/speedy-download
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-05-29 16:36:11 -0700
committerJulian Blake Kongslie2022-05-29 16:36:11 -0700
commit8f1db35363a7fa927296ed4484751ef3b0706594 (patch)
treef5b440ede11e0828a18402635fc1bc1244ecc680 /tool/speedy-download
parentMove stty setup/teardown to separate script; add hconnect script. (diff)
downloadmultipdp8-8f1db35363a7fa927296ed4484751ef3b0706594.tar.xz
Add extremely sus speedy-download tool which might have made Mike's FTDI
cable glitch enough to need a power cycle.
Diffstat (limited to 'tool/speedy-download')
-rwxr-xr-xtool/speedy-download19
1 files changed, 19 insertions, 0 deletions
diff --git a/tool/speedy-download b/tool/speedy-download
new file mode 100755
index 0000000..0da40d5
--- /dev/null
+++ b/tool/speedy-download
@@ -0,0 +1,19 @@
1#!/bin/bash
2
3set -eu
4
5FILE="$1"
6shift
7
8echo "$@" > /dev/ttyUSB0
9
10cat "$FILE" >/dev/ttyUSB0 &
11SEND=$!
12
13cat -u /dev/ttyUSB0 &
14RECV=$!
15
16wait "$SEND"
17sleep 1
18kill "$RECV"
19wait