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

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

SSHD=/usr/sbin/sshd
MACS="Macs=hmac-sha1"

case "$1" in

'start')
    $ECHO "Secure shell daemon:\c"

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

    $ECHO "."
    ;;

'stop')
    ${KILLALL} sshd
    ;;    

*)
    echo "usage: $0 {start | stop}"
    ;;

esac
