#!/bin/sh # $Id: rc.serial,v 1.1.1.1 1998/07/14 07:30:50 abial Exp $ # Change some defaults for serial devices. # Standard defaults are: # dtrwait 300 drainwait 0 # initial cflag from = cread cs8 hupcl # initial iflag, lflag and oflag all 0 # speed 9600 # special chars from # nothing locked # except for serial consoles the initial iflag, lflag and oflag are from # and clocal is locked on. default() { # Reset everything changed by the other functions to initial defaults. ci=$1; shift # call in device identifier co=$1; shift # call out device identifier for i in $* do comcontrol /dev/tty$ci$i dtrwait 300 drainwait 0 stty