diff scripts/minicom.sh @ 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 2f7ca1a1e274
children
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"