aboutsummaryrefslogtreecommitdiff
path: root/scripts/minicom.sh
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-05-09 16:31:24 -0500
committerRob Landley <rob@landley.net>2020-05-09 16:31:24 -0500
commit7573e325d3e9ed3d21fc8a93c464604c974ed76b (patch)
treea4fdb9834d68fc25d9449ba4d760ae6cac4d806b /scripts/minicom.sh
parentcecda30e855f541ce4f0694561ffa3a65938a3c4 (diff)
downloadtoybox-7573e325d3e9ed3d21fc8a93c464604c974ed76b.tar.gz
Remove old scripts/minicom.sh and cleanup microcom.c a bit more.
Use s# instead of atoi, meantion -s default in help text, use toybuf instead of stack buf, reuse i instead of declaring a separate ssize_t, FLAG() macro.
Diffstat (limited to 'scripts/minicom.sh')
-rwxr-xr-xscripts/minicom.sh18
1 files changed, 0 insertions, 18 deletions
diff --git a/scripts/minicom.sh b/scripts/minicom.sh
deleted file mode 100755
index f47d0966..00000000
--- a/scripts/minicom.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash
-
-# If you want to use toybox netcat to talk to a serial port, use this.
-
-if [ ! -c "$1" ]
-then
- echo "usage: minicom.sh /dev/ttyS0"
- exit 1
-fi
-
-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"
-stty cooked echo # Put stdin back.