#!/sbin/sh
#
# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident	"@(#)network	1.1	08/05/06 SMI"
#

#
# Simulates cat in sh so it doesn't need to be on the root filesystem.
# Duplicated here since this is exec-ed by the alternate rc hierarchy.
#
shcat() {
	while [ $# -ge 1 ]; do
		while read i; do
			echo "$i"
		done < $1
		shift
	done
}

if [ -c /dev/rawip ]; then
	. /etc/init.d/network.pre_p2v $1
else
	hostname="`shcat /etc/nodename 2>/dev/null`"

	if [ -z "$hostname" ]; then
		hostname="unknown"
	fi

	/sbin/uname -S $hostname

	echo "Hostname: `/sbin/uname -n`" >&2
fi

