xref: /onnv-gate/usr/src/cmd/initpkg/init.d/sysetup (revision 1042:1231edaa8f91)
10Sstevel@tonic-gate#!/sbin/sh
20Sstevel@tonic-gate#
30Sstevel@tonic-gate# CDDL HEADER START
40Sstevel@tonic-gate#
50Sstevel@tonic-gate# The contents of this file are subject to the terms of the
60Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only
70Sstevel@tonic-gate# (the "License").  You may not use this file except in compliance
80Sstevel@tonic-gate# with the License.
90Sstevel@tonic-gate#
100Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
110Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
120Sstevel@tonic-gate# See the License for the specific language governing permissions
130Sstevel@tonic-gate# and limitations under the License.
140Sstevel@tonic-gate#
150Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
160Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
170Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
180Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
190Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
200Sstevel@tonic-gate#
210Sstevel@tonic-gate# CDDL HEADER END
220Sstevel@tonic-gate#
230Sstevel@tonic-gate#
24*953Srm88369# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
250Sstevel@tonic-gate# Use is subject to license terms.
260Sstevel@tonic-gate#
270Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
280Sstevel@tonic-gate
290Sstevel@tonic-gateif [ -z "$_INIT_PREV_LEVEL" ]; then
300Sstevel@tonic-gate	set -- `/usr/bin/who -r`
310Sstevel@tonic-gate	_INIT_PREV_LEVEL="$9"
320Sstevel@tonic-gatefi
330Sstevel@tonic-gate
340Sstevel@tonic-gate[ $_INIT_PREV_LEVEL != S -a $_INIT_PREV_LEVEL != 1 ] && exit 0
350Sstevel@tonic-gate
360Sstevel@tonic-gate# Uncomment this line to print the complete system configuration on startup
370Sstevel@tonic-gate#[ -x /usr/sbin/prtconf ] && /usr/sbin/prtconf
380Sstevel@tonic-gate
390Sstevel@tonic-gate# If there are trademark files, print them.
400Sstevel@tonic-gate
410Sstevel@tonic-gate[ -d /etc/tm ] && /usr/bin/cat /etc/tm/* 2>/dev/null
420Sstevel@tonic-gate
430Sstevel@tonic-gate#
440Sstevel@tonic-gate# Run rctladm to configure system resource controls based on the settings
450Sstevel@tonic-gate# previously saved by rctladm.  See rctladm(1m) for instructions on how to
460Sstevel@tonic-gate# modify resource control settings.
470Sstevel@tonic-gate#
480Sstevel@tonic-gateif [ -f /etc/rctladm.conf ] && [ -x /usr/sbin/rctladm ]; then
490Sstevel@tonic-gate	/usr/sbin/rctladm -u
500Sstevel@tonic-gatefi
51