xref: /illumos-gate/usr/src/cmd/netadm/ttydefs.sh (revision 8b80e8cb6855118d46f605e91b5ed4ce83417395)
1#!/sbin/sh
2#
3# CDDL HEADER START
4#
5# The contents of this file are subject to the terms of the
6# Common Development and Distribution License, Version 1.0 only
7# (the "License").  You may not use this file except in compliance
8# with the License.
9#
10# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11# or http://www.opensolaris.org/os/licensing.
12# See the License for the specific language governing permissions
13# and limitations under the License.
14#
15# When distributing Covered Code, include this CDDL HEADER in each
16# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17# If applicable, add the following below this CDDL HEADER, with the
18# fields enclosed by brackets "[]" replaced with your own identifying
19# information: Portions Copyright [yyyy] [name of copyright owner]
20#
21# CDDL HEADER END
22#
23#	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
24#	  All Rights Reserved
25
26
27#ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
28
29case "$MACH" in
30  "u3b2"|"sparc"|"i386"|"ppc" )
31	echo "# VERSION=1
32460800:460800 hupcl:460800 hupcl::307200
33307200:307200 hupcl:307200 hupcl::230400
34230400:230400 hupcl:230400 hupcl::153600
35153600:153600 hupcl:153600 hupcl::115200
36115200:115200 hupcl:115200 hupcl::76800
3776800:76800 hupcl:76800 hupcl::57600
3857600:57600 hupcl:57600 hupcl::38400
3938400:38400 hupcl:38400 hupcl::19200
4019200:19200 hupcl:19200 hupcl::9600
419600:9600 hupcl:9600 hupcl::4800
424800:4800 hupcl:4800 hupcl::2400
432400:2400 hupcl:2400 hupcl::1200
441200:1200 hupcl:1200 hupcl::300
45300:300 hupcl:300 hupcl::460800
46
47460800E:460800 hupcl evenp:460800 evenp::307200
48307200E:307200 hupcl evenp:307200 evenp::230400
49230400E:230400 hupcl evenp:230400 evenp::153600
50153600E:153600 hupcl evenp:153600 evenp::115200
51115200E:115200 hupcl evenp:115200 evenp::76800
5276800E:76800 hupcl evenp:76800 evenp::57600
5357600E:57600 hupcl evenp:57600 evenp::38400
5438400E:38400 hupcl evenp:38400 evenp::19200
5519200E:19200 hupcl evenp:19200 evenp::9600
569600E:9600 hupcl evenp:9600 evenp::4800
574800E:4800 hupcl evenp:4800 evenp::2400
582400E:2400 hupcl evenp:2400 evenp::1200
591200E:1200 hupcl evenp:1200 evenp::300
60300E:300 hupcl evenp:300 evenp::19200
61
62auto:hupcl:sane hupcl:A:9600
63
64console:9600 hupcl opost onlcr:9600::console
65console1:1200 hupcl opost onlcr:1200::console2
66console2:300 hupcl opost onlcr:300::console3
67console3:2400 hupcl opost onlcr:2400::console4
68console4:4800 hupcl opost onlcr:4800::console5
69console5:19200 hupcl opost onlcr:19200::console
70
71contty:9600 hupcl opost onlcr:9600 sane::contty1
72contty1:1200 hupcl opost onlcr:1200 sane::contty2
73contty2:300 hupcl opost onlcr:300 sane::contty3
74contty3:2400 hupcl opost onlcr:2400 sane::contty4
75contty4:4800 hupcl opost onlcr:4800 sane::contty5
76contty5:19200 hupcl opost onlcr:19200 sane::contty
77
78
794800H:4800:4800 sane hupcl::9600H
809600H:9600:9600 sane hupcl::19200H
8119200H:19200:19200 sane hupcl::38400H
8238400H:38400:38400 sane hupcl::2400H
832400H:2400:2400 sane hupcl::1200H
841200H:1200:1200 sane hupcl::300H
85300H:300:300 sane hupcl::4800H
86
87conttyH:9600 opost onlcr:9600 hupcl sane::contty1H
88contty1H:1200 opost onlcr:1200 hupcl sane::contty2H
89contty2H:300 opost onlcr:300 hupcl sane::contty3H
90contty3H:2400 opost onlcr:2400 hupcl sane::contty4H
91contty4H:4800 opost onlcr:4800 hupcl sane::contty5H
92contty5H:19200 opost onlcr:19200 hupcl sane::conttyH
93" >ttydefs
94	;;
95  * )
96	echo "Unknown architecture."
97	exit 1
98	;;
99esac
100