# 
# This is third phase of TCP/IP startup/configuration.  This script
# runs after the NIS/NIS+ startup script.  We run things here that may
# depend on NIS/NIS+ maps.
#

#
# XXX - We need to give ypbind time to bind to a server.
#
sleep 5
# 
# Re-set the netmask and broadcast addr for all IP interfaces.  This
# ifconfig is run here, after NIS has been started, so that "netmask
# +" will find the netmask if it lives in a NIS map.
#

/usr/sbin/ifconfig -au netmask + broadcast +

# This is a good time to verify that all of the interfaces were
# correctly configured.  But this is too noisey to run every time we
# boot.
#
# echo "network interface configuration:"
# /usr/sbin/ifconfig -a

#
# Add a static route for multicast packets out our default interface.
# The default interface is the interface that corrsponds to the node name.
#
echo "Setting default interface for multicast: \c"
/usr/sbin/route add "224.0.0.0" "`uname -n`" 0

#
# Run inetd in "standalone" mode (-s flag) so that it doesn't have
# to submit to the will of SAF.  Why did we ever let them change inetd?
#
/usr/sbin/inetd -s

#
# If this machine is configured to be an Internet Domain Name 
# System (DNS) server, run the name daemon.
#
if [ -f /usr/local/named/named -a -f /usr/local/named/named.boot ]; then
	/usr/local/named/named -b /usr/local/named/named.boot
	echo "starting internet domain name server."
fi

