aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2009-12-13 00:11:30 -0600
committerRob Landley <rob@landley.net>2009-12-13 00:11:30 -0600
commit67e61d3fce3d19bc321b994285755d3c10a689ab (patch)
tree67ee2d877fdbf5ce8e01fd1b8048c4a83aa18857
parent0f01f299acf0109b780dd7e9e3247f5253b6fd2e (diff)
downloadtoybox-67e61d3fce3d19bc321b994285755d3c10a689ab.tar.gz
Let the minicom script take the speed as an optional second argument.
-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"