#!/bin/sh
#
# ipx       Fire up/down IPX RIP/SAP daemon
#

# Source function library.
. /etc/rc.d/init.d/functions

. /etc/sysconfig/network

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

[ -f /usr/sbin/ipxd ] || exit 0

[ -f /etc/ipx_ticks ] || exit 0

# See how we were called.
case "$1" in
  start)
  	echo -n "Starting IPX RIP/SAP daemon: "
  	/usr/sbin/ipxd
	echo "ipxd"
        ;;
  stop)
	echo -n "Shutting down IPX RIP/SAP daemon: "
        kill `pidof ipxd` 2>/dev/null
	echo "done"
        ;;
  *)
        echo "Usage: ipxripd {start|stop}"
        exit 1
esac

exit 0
