#!/bin/sh

##
# IP Services
##

. /etc/rc.common

StartService ()
{
    ##
    # Internet super-server.
    ##
    ConsoleMessage "Starting internet services"
    inetd
    xinetd -pidfile /var/run/xinetd.pid 

    ##
    # Start up network boot cofiguration services.
    ##
    if [ "${CONFIGSERVER:=-NO-}" = "-YES-" ]; then
	ConsoleMessage "Starting host configuration services"

	if [ "${NETBOOTSERVER:=-NO-}" = "-YES-" ]; then
	    bootpd -m
	else
	    bootpd
	fi

	bootparamd
    fi
}

StopService ()
{
    return 0
}

RestartService ()
{
    return 0
}

RunService "$1"
