xref: /titanic_52/usr/src/cmd/netadm/iu.ap.sh (revision ea8dc4b6d2251b437950c0056bc626b311c73c27)
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#
24# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27#	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
28#	  All Rights Reserved
29
30
31#ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.3	*/
32
33case "$MACH" in
34  "i386" )
35	echo "# /dev/console and /dev/contty autopush setup
36#
37#       major minor   lastminor       modules
38
39	wc	0	0	ldterm ttcompat
40	asy	-1	0	ldterm ttcompat
41	ptsl	0	47	ldterm ttcompat
42	rts	-1	0	rts [anchor]
43	ipsecesp -1	0	ipsecesp
44	ipsecah	-1	0	ipsecah
45" > iu.ap
46	;;
47  "sparc" )
48	echo "# /dev/console and /dev/contty autopush setup
49#
50#      major   minor lastminor	modules
51
52	wc	0	0	ldterm ttcompat
53	qcn	0	255	ldterm ttcompat
54	sgcn	0	0	ldterm ttcompat
55	zs	0	63	ldterm ttcompat
56	zs	131072	131135	ldterm ttcompat
57	ptsl	0	47	ldterm ttcompat
58	cvc	0	0	ldterm ttcompat
59	mcpzsa	0	127	ldterm ttcompat
60	mcpzsa	256	383	ldterm ttcompat
61	se	0	255	ldterm ttcompat
62	se	131072	131327	ldterm ttcompat
63	se	16384	0	ldterm ttcompat
64	se	16392	0	ldterm ttcompat
65	su	0	255	ldterm ttcompat
66	su	16385	0	ldterm ttcompat
67	su	131072	131073	ldterm ttcompat
68	usbser_edge -1	0	ldterm ttcompat
69	rts	-1	0	rts [anchor]
70	ttymux	-1	0	ldterm ttcompat
71	ipsecesp -1	0	ipsecesp
72	ipsecah	-1	0	ipsecah
73" >iu.ap
74	;;
75  * )
76	echo "Unknown architecture."
77	exit 1
78	;;
79esac
80