#!/bin/sh
#
#    Copyright (c) 1996-2003 Brocade Communications Systems, Inc.
#    All rights reserved.
#
#    Initialization script to start/stop hardware watchdog daemon.
#

# Source common library
. /etc/init.d/functions

ln -s /dev/watchdog /dev/wdt
WDTD=/sbin/wdtd

case "$1" in

'start')
    $ECHO "Watchdog daemon:\c"

	if $CHECK wdtd && test -x ${WDTD}; then
	    $WDTD `cat $CONFIGDIR/wdtd.options 2> ${NULL}` & $ECHO " wdtd\c"
	fi

	$ECHO "."
	;;

*)
    echo "usage: $0 start"
    ;;

esac
