Let the minicom script take the speed as an optional second argument.

This commit is contained in:
Rob Landley 2009-12-13 00:11:30 -06:00
parent 0f01f299ac
commit 67e61d3fce

View File

@ -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"