Deleted Added
full compact
serial (5398) serial (7708)
1# Change some defauls for serial devices.
2# Standard defaults are:
1# Change some defauls for serial devices.
2# Standard defaults are:
3# dtrwait 300 drainwait 0
3# dtrwait 300 drainwait 0
4# initial cflag from <sys/ttydefaults.h> = cread cs8 hupcl
5# initial iflag, lflag and oflag all 0
6# speed 9600
7# special chars from <sys/ttydefaults.h>
8# nothing locked
9# except for serial consoles the initial iflag, lflag and oflag are from
10# <sys/ttydefaults.h> and clocal is locked on.
11

--- 24 unchanged lines hidden (view full) ---

36 stty </dev/cuala$i 300
37 done
38}
39
40modem() {
41 # Modem that supports CTS and perhaps RTS handshaking.
42 for i in $*
43 do
4# initial cflag from <sys/ttydefaults.h> = cread cs8 hupcl
5# initial iflag, lflag and oflag all 0
6# speed 9600
7# special chars from <sys/ttydefaults.h>
8# nothing locked
9# except for serial consoles the initial iflag, lflag and oflag are from
10# <sys/ttydefaults.h> and clocal is locked on.
11

--- 24 unchanged lines hidden (view full) ---

36 stty </dev/cuala$i 300
37 done
38}
39
40modem() {
41 # Modem that supports CTS and perhaps RTS handshaking.
42 for i in $*
43 do
44 comcontrol /dev/ttyd$i dtrwait 100 drainwait 180 # may depend on modem
44 # may depend on modem
45 comcontrol /dev/ttyd$i dtrwait 100 drainwait 180
45 # Lock crtscts on.
46 # Speed reasonable for V42bis.
47 stty </dev/ttyid$i crtscts 57600
48 stty </dev/ttyld$i crtscts
49 stty </dev/cuaia$i crtscts 57600
50 stty </dev/cuala$i crtscts
51 done
52}

--- 39 unchanged lines hidden ---
46 # Lock crtscts on.
47 # Speed reasonable for V42bis.
48 stty </dev/ttyid$i crtscts 57600
49 stty </dev/ttyld$i crtscts
50 stty </dev/cuaia$i crtscts 57600
51 stty </dev/cuala$i crtscts
52 done
53}

--- 39 unchanged lines hidden ---