xref: /illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/net-ipmp (revision 57cf819efa50a6a3b3a478c25a098c29722eb358)
1a73be61aSHans Rosenfeld#!/sbin/sh
2a73be61aSHans Rosenfeld#
3a73be61aSHans Rosenfeld#
4a73be61aSHans Rosenfeld# This file and its contents are supplied under the terms of the
5a73be61aSHans Rosenfeld# Common Development and Distribution License ("CDDL"), version 1.0.
6a73be61aSHans Rosenfeld# You may only use this file in accordance with the terms of version
7a73be61aSHans Rosenfeld# 1.0 of the CDDL.
8a73be61aSHans Rosenfeld#
9a73be61aSHans Rosenfeld# A full copy of the text of the CDDL should have accompanied this
10a73be61aSHans Rosenfeld# source.  A copy of the CDDL is also available via the Internet at
11a73be61aSHans Rosenfeld# http://www.illumos.org/license/CDDL.
12a73be61aSHans Rosenfeld#
13a73be61aSHans Rosenfeld
14a73be61aSHans Rosenfeld#
15a73be61aSHans Rosenfeld# Copyright 2021 Tintri by DDN, Inc. All rights reserved.
16a73be61aSHans Rosenfeld#
17a73be61aSHans Rosenfeld
18a73be61aSHans Rosenfeld. /lib/svc/share/smf_include.sh
19a73be61aSHans Rosenfeld
20a73be61aSHans Rosenfeldif [ -z "$SMF_FMRI" ]; then
21bbf21555SRichard Lowe        echo "this script can only be invoked by smf(7)"
22a73be61aSHans Rosenfeld        exit $SMF_EXIT_ERR_NOSMF
23a73be61aSHans Rosenfeldfi
24a73be61aSHans Rosenfeld
25*57cf819eSAndy Fiddamansmf_configure_ip || exit $SMF_EXIT_NODAEMON
26a73be61aSHans Rosenfeld
27a73be61aSHans Rosenfeldif /lib/inet/in.mpathd; then
28a73be61aSHans Rosenfeld        exit $SMF_EXIT_OK
29a73be61aSHans Rosenfeldelse
30a73be61aSHans Rosenfeld        exit $SMF_EXIT_ERR_FATAL
31a73be61aSHans Rosenfeldfi
32