#!/bin/sh
#
####################################################
#     This software released to the public domain  #
#     without restrictions of any kind.            #
####################################################
#
#	@(#)islave	3.2 9/22/89

baud="9600"
tty=

while [ "$1" ]
do
	case "$1" in

	50|75|110|1200|2400|4800|9600|19200|38400|exta|extb)
		baud="$1"
		;;
	
	/dev/*)
		def_tty=
		tty="$tty $1"
		;;

	tty*|cu*)
		tty="$tty /dev/$1"
		;;
	
	*)
		tty="$tty /dev/tty$1"
		;;
	esac

	shift
done

perf 999999 2>/dev/null | perf -s 2>&1

for i in $tty
do
	(
	stty $baud eof '^a' erase '^h' kill '^u' \
		cs7 parenb -parodd -icrnl -istrip -ignpar inpck \
		-icanon -ixon -ixoff -echo -opost
	perf
	) >$i <$i &
done 2>&1

wait
