view scripts/ @ 1189:95ae2805622f draft

Add Szabolcs Nagy's deflate/inflate code from git:// Confirmed with him on IRC it's ok to use under toybox license, glued the files together and hammered square peg into round hole, no other changes yet.
author Rob Landley <>
date Fri, 31 Jan 2014 06:01:30 -0600
parents 2428870ce50c
line wrap: on
line source


# If you want to use toybox netcat to talk to a serial port, use this.

if [ ! -c "$1" ]
  echo "Usage: /dev/ttyS0"
  exit 1

[ -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.