aboutsummaryrefslogtreecommitdiff
path: root/scripts/minicom.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/minicom.sh')
-rwxr-xr-xscripts/minicom.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/minicom.sh b/scripts/minicom.sh
index 58685c6d..1a9b0d86 100755
--- a/scripts/minicom.sh
+++ b/scripts/minicom.sh
@@ -8,7 +8,10 @@ then
exit 1
fi
-stty 115200 -F "$1"
+SPEED="$2"
+[ -z "$SPEED" ] && SPEED=115200
+
+stty $SPEED -F "$1"
stty raw -echo -ctlecho -F "$1"
stty raw -echo # Need to do it on stdin, too.
./toybox netcat -f "$1"