#! /bin/sh
#
# chkconfig: - 60 20
# description: The bootparamd server allows older Sun workstations to \
#              net book from Linux boxes. It, along with rarp, are rarely \
#              used anymore; bootp and dhcp having replaced them.

# Get config.
. /etc/sysconfig/network

# Check that networking is up.
if [ ${NETWORKING} = "no" ]
then
	exit 0
fi

# See how we were called.
case "$1" in
  start)
	echo -n "Starting bootparamd services: "
	daemon rpc.bootparamd

	echo
	touch /var/lock/subsys/bootparamd
	;;
  stop)
	echo -n "Stopping bootparamd services: "
	killproc routed

	echo
	rm -f /var/lock/subsys/bootparamd
	;;
  status)
	status rpc.bootparamd
	;;
  restart)
	$0 stop
	$0 start
	;;
  *)
	echo "Usage: bootparamd {start|stop|status|restart}"
	exit 1
esac

exit 0
