dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / svc / milestone / identity-node
blobfa672bf2b8bbaa70dcb8344834c925cf486b87fd
1 #!/sbin/sh
3 # CDDL HEADER START
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.
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.
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]
20 # CDDL HEADER END
23 # Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T.
24 # All rights reserved.
27 # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
28 # Use is subject to license terms.
30 # ident "%Z%%M% %I% %E% SMI"
32 . /lib/svc/share/smf_include.sh
33 . /lib/svc/share/net_include.sh
35 # Make sure that the libraries essential to this stage of booting can be found.
36 LD_LIBRARY_PATH=/lib; export LD_LIBRARY_PATH
38 hostname="`shcat /etc/nodename 2>/dev/null`"
39 if [ -z "$hostname" ]; then
40 if ! smf_is_globalzone; then
41 hostname=$(/usr/bin/uname -n)
42 else
43 hostname="unknown"
47 /usr/bin/hostname $hostname
49 echo "Hostname: `/usr/bin/uname -n`" > /dev/msglog
51 # Reset the library path now that we are past the critical stage
52 unset LD_LIBRARY_PATH
54 exit $SMF_EXIT_OK