2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar#! /usr/bin/ksh
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar#
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# Use is subject to license terms.
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar#
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar#
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# BSD 3 Clause License
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar#
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# Copyright (c) 2007, The Storage Networking Industry Association.
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar#
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# Redistribution and use in source and binary forms, with or without
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# modification, are permitted provided that the following conditions
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# are met:
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# - Redistributions of source code must retain the above copyright
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# notice, this list of conditions and the following disclaimer.
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar#
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# - Redistributions in binary form must reproduce the above copyright
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# notice, this list of conditions and the following disclaimer in
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# the documentation and/or other materials provided with the
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# distribution.
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar#
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# - Neither the name of The Storage Networking Industry Association (SNIA)
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# nor the names of its contributors may be used to endorse or promote
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# products derived from this software without specific prior written
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# permission.
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar#
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar# POSSIBILITY OF SUCH DAMAGE.
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar#
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar. /lib/svc/share/smf_include.sh
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdarif [ -f /usr/lib/ndmp/ndmpd ]; then
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar /usr/lib/ndmp/ndmpd 2>&1 &
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar exit 0
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdarelse
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdar exit $SMF_EXIT_ERR_CONFIG
2654012f83cec5dc15b61dfe3e4a4915f186e7a6Reza Sabdarfi