#!/sbin/sh
#
# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident	"@(#)inetinit	1.2	08/07/10 SMI"
#

if [ -c /dev/rawip ]; then
	/.SUNWnative/usr/lib/brand/solaris9/s9_ipsecalgs -s
	. /etc/init.d/inetinit.pre_p2v $1
else
	case "$1" in
	'start')
		;; # Fall through -- rest of script is the initialization code

	'stop')
		exit 0
		;;

	*)
		echo "Usage: $0 { start | stop }"
		exit 1
		;;
	esac

	#
	# Set NIS domainname if locally configured.
	#
	if [ -f /etc/defaultdomain ]; then
		/usr/bin/domainname `cat /etc/defaultdomain`
		echo "NIS domainname is `/usr/bin/domainname`"
	fi
fi
