#! /sbin/sh
# configure script
# $Revision: 1.2.114.1 $
#
# (c) Copyright Hewlett-Packard Company 1993
#
########
if [ -f /usr/lbin/sw/control_utils ];then
	. /usr/lbin/sw/control_utils
else
	echo "ERROR:    Cannot find /usr/lbin/sw/control_utils";exit 1
fi

#=========
#   Copy a default file into place if it doesn't exits on the users 
#   file system.
#=========
function new_stuff {
newconfig_cp $1;errors_cp=$?
newconfig_msgs $errors_cp;errors_msgs=$?
if [ $errors_msgs -ne 0 ]; then errors_found=1;fi
}

errors_found=0
new_stuff	"/etc/netid"
new_stuff	"/var/yp/secureservers"


# Add nfs to configuration file so that new kernel will be built.
#
if [[ -n $SW_DEFERRED_KERNBLD ]];then
	mod_systemfile ${SW_SYSTEM_FILE_PATH} -a nfs
	retval=$?
	if [[ $retval -ne $SUCCESS ]];then
		echo "ERROR:  Could not enter "nfs" in the ${SW_SYSTEM_FILE_PATH}"
		exit $retval
	fi
fi
if [ $errors_found -ne 0 ];then
	exit $errors_found
else
	exit 0
fi

