xref: /titanic_44/usr/src/cmd/netadm/iu.ap.sh (revision cab25e88571b90083876d2876f790fdf153773a2)
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 2009 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
30case "$MACH" in
31  "i386" )
32	echo "# /dev/console and /dev/contty autopush setup
33#
34#       major minor   lastminor       modules
35
36	wc	-1	0	ldterm ttcompat
37	asy	-1	0	ldterm ttcompat
38	xencons	0	0	ldterm ttcompat
39	ptsl	0	47	ldterm ttcompat
40	usbsacm -1	0	ldterm ttcompat
41	usbser_edge	-1	0	ldterm ttcompat
42	usbsprl	-1	0	ldterm ttcompat
43	usbsksp	-1	0	ldterm ttcompat
44	usbftdi	-1	0	ldterm ttcompat
45	ipsecesp -1	0	ipsecesp
46	ipsecah	-1	0	ipsecah
47	pcser	0	255	ldterm ttcompat
48" > iu.ap
49	;;
50  "sparc" )
51	echo "# /dev/console and /dev/contty autopush setup
52#
53#      major   minor lastminor	modules
54
55	wc	-1	0	ldterm ttcompat
56	qcn	0	255	ldterm ttcompat
57	sgcn	0	0	ldterm ttcompat
58	zs	0	63	ldterm ttcompat
59	zs	131072	131135	ldterm ttcompat
60	ptsl	0	47	ldterm ttcompat
61	cvc	0	0	ldterm ttcompat
62	mcpzsa	0	127	ldterm ttcompat
63	mcpzsa	256	383	ldterm ttcompat
64	se	0	255	ldterm ttcompat
65	se	131072	131327	ldterm ttcompat
66	se	16384	0	ldterm ttcompat
67	se	16392	0	ldterm ttcompat
68	su	0	255	ldterm ttcompat
69	su	16385	0	ldterm ttcompat
70	su	131072	131073	ldterm ttcompat
71	usbser_edge -1	0	ldterm ttcompat
72	usbsacm -1	0	ldterm ttcompat
73	usbsprl -1	0	ldterm ttcompat
74	usbsksp -1	0	ldterm ttcompat
75	usbftdi	-1	0	ldterm ttcompat
76	ttymux	-1	0	ldterm ttcompat
77	ipsecesp -1	0	ipsecesp
78	ipsecah	-1	0	ipsecah
79	oplmsu	0	0	ldterm ttcompat
80	pcser	0	255	ldterm ttcompat
81" >iu.ap
82	;;
83  * )
84	echo "Unknown architecture."
85	exit 1
86	;;
87esac
88