Mercurial > hg > toybox
changeset 363:2428870ce50c
Let the minicom script take the speed as an optional second argument.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 13 Dec 2009 00:11:30 -0600 |
parents | d15520819347 |
children | 6df3ac5165fa |
files | scripts/minicom.sh |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/minicom.sh Sun Nov 29 22:14:06 2009 -0600 +++ b/scripts/minicom.sh Sun Dec 13 00:11:30 2009 -0600 @@ -8,7 +8,10 @@ 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"