#!/bin/sh
#
# inet -- start or stop inetd
#

case "$1" in
start)
    need network portmapper

    if [ -x /usr/sbin/inetd ]; then
	echo "starting inetd"
	/usr/sbin/inetd
    fi
    ;;
info)
    echo "Basic networking services"
    ;;
stop)
    if [ -r /var/run/inetd.pid ]; then
	echo "stopping inetd"
	PID=`cat /var/run/inetd.pid`
	${PID:+kill $PID}
    fi
    ;;
*)
    echo "usage: $0 {start|stop}"
    ;;
esac
