#!/bin/sh
#
#
#    Copyright (c) 2002 Brocade Communications Systems, Inc.
#    All rights reserved.
#
#
# NAME
#      wwnhs.sh - Enables the world wide name card hot-swap
#                 interface.
# 
# SYNOPSIS
#      wwnhs
# 
# AVAILABILITY
#      user
# 
# DESCRIPTION
#      This command will invoke two executables server and client
#      only one server and client will be created regardless of
#      how many times this script is called.
#      If the client dies the server will continue, calling this
#      script a second time will only create a new client.
#      The server is always run as a background entity.
#
# OPTIONS
#     None
#
#

# Start server on local CP
/fabos/sbin/wwnhserver &

# Start server on remote CP
#if { /sbin/ifconfig eth1 | /bin/grep --quiet "10.0.0.5"; } ;
#then
#    /usr/bin/rsh -n 10.0.0.6 /fabos/sbin/wwnhserver > /dev/null &
#else
#    /usr/bin/rsh -n 10.0.0.5 /fabos/sbin/wwnhserver > /dev/null &
#fi

#Start client on local CP this will self exit if local CP is slave
