OSDN Git Service

Let the minicom script take the speed as an optional second argument.
authorRob Landley <rob@landley.net>
Sun, 13 Dec 2009 06:11:30 +0000 (00:11 -0600)
committerRob Landley <rob@landley.net>
Sun, 13 Dec 2009 06:11:30 +0000 (00:11 -0600)
scripts/minicom.sh

index 58685c6..1a9b0d8 100755 (executable)
@@ -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"