Mercurial > hg > toybox
view scripts/minicom.sh @ 1271:c214de62b18b draft
Teach cpio to set uid/gid and timestamp. (Timestamp has year 2100 problem.)
Note that directory timestamps are still sometimes wrong because creating
things in a directory can update the timestamp. Also, cp -r has logic to
ensure we can write to a directory that doesn't have write permission,
cpio does not. This is fixable, but not what existing cpio does.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 29 Apr 2014 06:03:17 -0500 |
parents | 2428870ce50c |
children |
line wrap: on
line source
#!/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.