#! /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 exit $errors_msgs;fi
}

errors_found=0
new_stuff "/etc/rc.config.d/nfsconf"

# 
# Create our favorite directories if needed
# 
# These directories will not be created on the install of a diskless
# client.  They probably will be created on a standalone machine, or
# server.  The probably is because this seems to be up for discussion
# as I am adding these changes.  To be safe I will create them if they
# do not exist, regardless of type of node.
#

if [ ! -d /var/spool/pcnfs ]; then mkdir -p /var/spool/pcnfs;fi
if [ ! -d /var/spool/rexd ]; then mkdir -p /var/spool/rexd;fi
if [ ! -d /var/statmon/sm ]; then mkdir -p /var/statmon/sm;fi
if [ ! -d /var/statmon/sm.bak ]; then mkdir -p /var/statmon/sm.bak;fi
if [ ! -f /var/statmon/state ]; then touch /var/statmon/state;fi
if [ ! -d /var/yp/binding ];then mkdir -p /var/yp/binding;fi
exit 0


