diff options
| author | stevel@tonic-gate <none@none> | 2005-06-14 00:00:00 -0700 |
|---|---|---|
| committer | stevel@tonic-gate <none@none> | 2005-06-14 00:00:00 -0700 |
| commit | 7c478bd95313f5f23a4c958a745db2134aa03244 (patch) | |
| tree | c871e58545497667cbb4b0a4f2daf204743e1fe7 /usr/src/cmd/netadm | |
| download | illumos-joyent-7c478bd95313f5f23a4c958a745db2134aa03244.tar.gz | |
OpenSolaris Launch
Diffstat (limited to 'usr/src/cmd/netadm')
| -rw-r--r-- | usr/src/cmd/netadm/Makefile | 89 | ||||
| -rw-r--r-- | usr/src/cmd/netadm/_pmtab.sh | 42 | ||||
| -rw-r--r-- | usr/src/cmd/netadm/_sactab.sh | 39 | ||||
| -rw-r--r-- | usr/src/cmd/netadm/_sysconf.sh | 38 | ||||
| -rw-r--r-- | usr/src/cmd/netadm/iu.ap.sh | 79 | ||||
| -rw-r--r-- | usr/src/cmd/netadm/ttydefs.sh | 99 |
6 files changed, 386 insertions, 0 deletions
diff --git a/usr/src/cmd/netadm/Makefile b/usr/src/cmd/netadm/Makefile new file mode 100644 index 0000000000..9a8225bee0 --- /dev/null +++ b/usr/src/cmd/netadm/Makefile @@ -0,0 +1,89 @@ +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# +#ident "%Z%%M% %I% %E% SMI" +# +# Copyright (c) 1989 by Sun Microsystems, Inc. +# + +PROG= _sactab _pmtab _sysconfig iu.ap ttydefs + +SRCS= $(PROG:%=%.sh) + +include ../Makefile.cmd + +DEFPM= zsmon + +ETCSAFD= $(ROOTETC)/saf +ETCPMD= $(ETCSAFD)/$(DEFPM) +VARPMD= $(ROOT)/var/saf/$(DEFPM) + +# Don't re-install /etc/saf which is installed by Targetdirs +#DIRS= $(ETCSAFD) $(ETCPMD) $(VARPMD) +DIRS= $(ETCPMD) $(VARPMD) + +ETCSAF= _sactab _sysconfig +ETCF= ttydefs iu.ap +ETCPM= _pmtab +PMLOG= log + +ROOTETCSAF= $(ETCSAF:%=$(ETCSAFD)/%) +ROOTETCF= $(ETCF:%=$(ROOTETC)/%) +ROOTETCPM = $(ETCPM:%=$(ETCPMD)/%) +ROOTVARPM = $(PMLOG:%=$(VARPMD)/%) + +FILEMODE= 0644 +OWNER= root +GROUP= sys + +$(ETCSAFD)/% : % + $(INS.file) + +$(VARPMD)/% : % + $(INS.file) + +$(ETCPMD)/% : % + $(INS.file) + +.KEEP_STATE: + +all: $(PROG) $(PMLOG) + +_sysconfig: _sysconf.sh + $(SH) _sysconf.sh + +_sactab _pmtab iu.ap ttydefs: + $(SH) $@.sh + +$(PMLOG): + $(TOUCH) $@ + +install: all $(DIRS) $(ROOTETCSAF) $(ROOTETCF) $(ROOTETCPM) $(ROOTVARPM) + +$(DIRS): + $(INS.dir) + +clean: + +lint: + +include ../Makefile.targ diff --git a/usr/src/cmd/netadm/_pmtab.sh b/usr/src/cmd/netadm/_pmtab.sh new file mode 100644 index 0000000000..1e037b5bec --- /dev/null +++ b/usr/src/cmd/netadm/_pmtab.sh @@ -0,0 +1,42 @@ +#!/sbin/sh +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +# All Rights Reserved + + +# Copyright (c) 1999 by Sun Microsystems, Inc. +# All rights reserved. + +#pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.2 */ + +case "$MACH" in + "u3b2"|"sparc"|"ppc"|i386 ) + echo "# VERSION=1 +ttya:u:root:reserved:reserved:reserved:/dev/term/a:I::/usr/bin/login::9600:ldterm,ttcompat:ttya login\: ::tvi925:y:# +ttyb:u:root:reserved:reserved:reserved:/dev/term/b:I::/usr/bin/login::9600:ldterm,ttcompat:ttyb login\: ::tvi925:y:# " > _pmtab + ;; + * ) + echo "Unknown architecture." + exit 1 + ;; +esac diff --git a/usr/src/cmd/netadm/_sactab.sh b/usr/src/cmd/netadm/_sactab.sh new file mode 100644 index 0000000000..4616518920 --- /dev/null +++ b/usr/src/cmd/netadm/_sactab.sh @@ -0,0 +1,39 @@ +#!/sbin/sh +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +# All Rights Reserved + + +#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.2 */ + +case "$MACH" in + "u3b2"|"sparc"|"i386"|"ppc" ) + echo "# VERSION=1 + +zsmon:ttymon::0:/usr/lib/saf/ttymon # " >_sactab + ;; + * ) + echo "Unknown architecture." + exit 1 + ;; +esac diff --git a/usr/src/cmd/netadm/_sysconf.sh b/usr/src/cmd/netadm/_sysconf.sh new file mode 100644 index 0000000000..3840cb76f3 --- /dev/null +++ b/usr/src/cmd/netadm/_sysconf.sh @@ -0,0 +1,38 @@ +#!/sbin/sh +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +# All Rights Reserved + + +#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.2 */ + +case "$MACH" in + "u3b2"|"sparc"|"i386"|"ppc" ) + echo "# This is the per-system configuration file +" >_sysconfig + ;; + * ) + echo "Unknown architecture." + exit 1 + ;; +esac diff --git a/usr/src/cmd/netadm/iu.ap.sh b/usr/src/cmd/netadm/iu.ap.sh new file mode 100644 index 0000000000..093616fd32 --- /dev/null +++ b/usr/src/cmd/netadm/iu.ap.sh @@ -0,0 +1,79 @@ +#!/sbin/sh +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# +# Copyright 2005 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +# All Rights Reserved + + +#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.3 */ + +case "$MACH" in + "i386" ) + echo "# /dev/console and /dev/contty autopush setup +# +# major minor lastminor modules + + wc 0 0 ldterm ttcompat + asy -1 0 ldterm ttcompat + ptsl 0 47 ldterm ttcompat + rts -1 0 rts [anchor] + ipsecesp -1 0 ipsecesp + ipsecah -1 0 ipsecah +" > iu.ap + ;; + "sparc" ) + echo "# /dev/console and /dev/contty autopush setup +# +# major minor lastminor modules + + wc 0 0 ldterm ttcompat + qcn 0 255 ldterm ttcompat + sgcn 0 0 ldterm ttcompat + zs 0 63 ldterm ttcompat + zs 131072 131135 ldterm ttcompat + ptsl 0 47 ldterm ttcompat + cvc 0 0 ldterm ttcompat + mcpzsa 0 127 ldterm ttcompat + mcpzsa 256 383 ldterm ttcompat + se 0 255 ldterm ttcompat + se 131072 131327 ldterm ttcompat + se 16384 0 ldterm ttcompat + se 16392 0 ldterm ttcompat + su 0 255 ldterm ttcompat + su 16385 0 ldterm ttcompat + su 131072 131073 ldterm ttcompat + usbser_edge -1 0 ldterm ttcompat + rts -1 0 rts [anchor] + ttymux -1 0 ldterm ttcompat + ipsecesp -1 0 ipsecesp + ipsecah -1 0 ipsecah +" >iu.ap + ;; + * ) + echo "Unknown architecture." + exit 1 + ;; +esac diff --git a/usr/src/cmd/netadm/ttydefs.sh b/usr/src/cmd/netadm/ttydefs.sh new file mode 100644 index 0000000000..98bdec0311 --- /dev/null +++ b/usr/src/cmd/netadm/ttydefs.sh @@ -0,0 +1,99 @@ +#!/sbin/sh +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +# All Rights Reserved + + +#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.2 */ + +case "$MACH" in + "u3b2"|"sparc"|"i386"|"ppc" ) + echo "# VERSION=1 +460800:460800 hupcl:460800 hupcl::307200 +307200:307200 hupcl:307200 hupcl::230400 +230400:230400 hupcl:230400 hupcl::153600 +153600:153600 hupcl:153600 hupcl::115200 +115200:115200 hupcl:115200 hupcl::76800 +76800:76800 hupcl:76800 hupcl::57600 +57600:57600 hupcl:57600 hupcl::38400 +38400:38400 hupcl:38400 hupcl::19200 +19200:19200 hupcl:19200 hupcl::9600 +9600:9600 hupcl:9600 hupcl::4800 +4800:4800 hupcl:4800 hupcl::2400 +2400:2400 hupcl:2400 hupcl::1200 +1200:1200 hupcl:1200 hupcl::300 +300:300 hupcl:300 hupcl::460800 + +460800E:460800 hupcl evenp:460800 evenp::307200 +307200E:307200 hupcl evenp:307200 evenp::230400 +230400E:230400 hupcl evenp:230400 evenp::153600 +153600E:153600 hupcl evenp:153600 evenp::115200 +115200E:115200 hupcl evenp:115200 evenp::76800 +76800E:76800 hupcl evenp:76800 evenp::57600 +57600E:57600 hupcl evenp:57600 evenp::38400 +38400E:38400 hupcl evenp:38400 evenp::19200 +19200E:19200 hupcl evenp:19200 evenp::9600 +9600E:9600 hupcl evenp:9600 evenp::4800 +4800E:4800 hupcl evenp:4800 evenp::2400 +2400E:2400 hupcl evenp:2400 evenp::1200 +1200E:1200 hupcl evenp:1200 evenp::300 +300E:300 hupcl evenp:300 evenp::19200 + +auto:hupcl:sane hupcl:A:9600 + +console:9600 hupcl opost onlcr:9600::console +console1:1200 hupcl opost onlcr:1200::console2 +console2:300 hupcl opost onlcr:300::console3 +console3:2400 hupcl opost onlcr:2400::console4 +console4:4800 hupcl opost onlcr:4800::console5 +console5:19200 hupcl opost onlcr:19200::console + +contty:9600 hupcl opost onlcr:9600 sane::contty1 +contty1:1200 hupcl opost onlcr:1200 sane::contty2 +contty2:300 hupcl opost onlcr:300 sane::contty3 +contty3:2400 hupcl opost onlcr:2400 sane::contty4 +contty4:4800 hupcl opost onlcr:4800 sane::contty5 +contty5:19200 hupcl opost onlcr:19200 sane::contty + + +4800H:4800:4800 sane hupcl::9600H +9600H:9600:9600 sane hupcl::19200H +19200H:19200:19200 sane hupcl::38400H +38400H:38400:38400 sane hupcl::2400H +2400H:2400:2400 sane hupcl::1200H +1200H:1200:1200 sane hupcl::300H +300H:300:300 sane hupcl::4800H + +conttyH:9600 opost onlcr:9600 hupcl sane::contty1H +contty1H:1200 opost onlcr:1200 hupcl sane::contty2H +contty2H:300 opost onlcr:300 hupcl sane::contty3H +contty3H:2400 opost onlcr:2400 hupcl sane::contty4H +contty4H:4800 opost onlcr:4800 hupcl sane::contty5H +contty5H:19200 opost onlcr:19200 hupcl sane::conttyH +" >ttydefs + ;; + * ) + echo "Unknown architecture." + exit 1 + ;; +esac |
