identity-node revision 7c478bd95313f5f23a4c958a745db2134aa03244
0N/A# The contents of this file are subject to the terms of the 0N/A# Common Development and Distribution License, Version 1.0 only 0N/A# (the "License"). You may not use this file except in compliance 0N/A# See the License for the specific language governing permissions 0N/A# and limitations under the License. 0N/A# When distributing Covered Code, include this CDDL HEADER in each 0N/A# If applicable, add the following below this CDDL HEADER, with the 0N/A# fields enclosed by brackets "[]" replaced with your own identifying 0N/A# information: Portions Copyright [yyyy] [name of copyright owner] 0N/A# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T. 0N/A# All rights reserved. 0N/A# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 58N/A# Use is subject to license terms. 0N/A# ident "%Z%%M% %I% %E% SMI" 0N/A# Make sure that the libraries essential to this stage of booting can be found. 58N/A# If DHCP was used on a primary interface then set the hostname 0N/A# that was returned. If no hostname was returned, set the name 0N/A# to be "unknown". The hostname must be set to something, because 0N/A# tooltalk will hang unless the name can be locally resolved. 50N/A# Sendmail also requires the name to be resolvable locally. 0N/A# Later, in inetsvc, we create a name "unknown" and create a entry 93N/A# address assigned by DHCP. The use of bootparams as a fallback 0N/A# for all non-DHCP cases provides compatibility with the 0N/A# behavior of the system before netstrategy was introduced. 0N/A# For non-global zones, fall back to the `uname -n` value provided by the 0N/A# kernel if /etc/nodename does not exist, as is expected on an initial boot. 0N/A echo "re-trying host configuration..." 0N/A # Restrict this to IPv4 interfaces. 0N/A# If the netstrategy was unsuccessful and we haven't got a locally configured 0N/A# name, default to "unknown" 0N/A# Reset the library path now that we are past the critical stage