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 2016 Nexenta Systems, Inc.
  16 #
  17 
  18 . /lib/svc/share/smf_include.sh
  19 
  20 if [ -z "$SMF_FMRI" ]; then
  21         echo "this script can only be invoked by smf(5)"
  22         exit $SMF_EXIT_ERR_NOSMF
  23 fi
  24 
  25 smf_configure_ip || exit $SMF_EXIT_ERR_FATAL
  26 
  27 if /lib/inet/in.mpathd; then
  28         exit $SMF_EXIT_OK
  29 else
  30         exit $SMF_EXIT_ERR_FATAL
  31 fi