OSDN Git Service
(root)
/
android-x86
/
external-toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f01f29
)
Let the minicom script take the speed as an optional second argument.
author
Rob Landley
<rob@landley.net>
Sun, 13 Dec 2009 06:11:30 +0000
(
00:11
-0600)
committer
Rob Landley
<rob@landley.net>
Sun, 13 Dec 2009 06:11:30 +0000
(
00:11
-0600)
scripts/minicom.sh
patch
|
blob
|
history
diff --git
a/scripts/minicom.sh
b/scripts/minicom.sh
index
58685c6
..
1a9b0d8
100755
(executable)
--- 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"