#! /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

if [ ! -f /etc/rc.config.d/nfsconf ];then
        echo "ERROR:	Can not find /etc/rc.config.d/nfsconf"
	exit 1
else
	/sbin/is_local_root; err=$?
	if [ $err -eq 0 ];then
		ch_rc -a -p NFS_SERVER=1 /etc/rc.config.d/nfsconf
	echo "NOTE:    NFS_SERVER in /etc/rc.config.d/nfsconf is now set to 1."
	fi
fi

# 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
exit 0






