xref: /titanic_41/usr/src/cmd/netadm/iu.ap.sh (revision 60405de4d8688d96dd05157c28db3ade5c9bc234)
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 (the "License").
7# You may not use this file except in compliance with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
27#	  All Rights Reserved
28
29
30#ident	"%Z%%M%	%I%	%E% SMI"
31
32case "$MACH" in
33  "i386" )
34	echo "# /dev/console and /dev/contty autopush setup
35#
36#       major minor   lastminor       modules
37
38	wc	0	0	ldterm ttcompat
39	asy	-1	0	ldterm ttcompat
40	ptsl	0	47	ldterm ttcompat
41	rts	-1	0	rts [anchor]
42	ipsecesp -1	0	ipsecesp
43	ipsecah	-1	0	ipsecah
44" > iu.ap
45	;;
46  "sparc" )
47	echo "# /dev/console and /dev/contty autopush setup
48#
49#      major   minor lastminor	modules
50
51	wc	0	0	ldterm ttcompat
52	qcn	0	255	ldterm ttcompat
53	sgcn	0	0	ldterm ttcompat
54	zs	0	63	ldterm ttcompat
55	zs	131072	131135	ldterm ttcompat
56	ptsl	0	47	ldterm ttcompat
57	cvc	0	0	ldterm ttcompat
58	mcpzsa	0	127	ldterm ttcompat
59	mcpzsa	256	383	ldterm ttcompat
60	se	0	255	ldterm ttcompat
61	se	131072	131327	ldterm ttcompat
62	se	16384	0	ldterm ttcompat
63	se	16392	0	ldterm ttcompat
64	su	0	255	ldterm ttcompat
65	su	16385	0	ldterm ttcompat
66	su	131072	131073	ldterm ttcompat
67	usbser_edge -1	0	ldterm ttcompat
68	rts	-1	0	rts [anchor]
69	ttymux	-1	0	ldterm ttcompat
70	ipsecesp -1	0	ipsecesp
71	ipsecah	-1	0	ipsecah
72	oplmsu	0	0	ldterm ttcompat
73" >iu.ap
74	;;
75  * )
76	echo "Unknown architecture."
77	exit 1
78	;;
79esac
80