From 7573e325d3e9ed3d21fc8a93c464604c974ed76b Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 9 May 2020 16:31:24 -0500 Subject: 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. --- scripts/minicom.sh | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100755 scripts/minicom.sh (limited to 'scripts') 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. -- cgit v1.2.3