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