#!/bin/sh
#
# $Id: isi_mount_ifs 272723 2012-10-03 17:05:22Z olaskin $
#

# PROVIDE: isi_mount_ifs
# REQUIRE: isi_post_network isi_mcp isi_testjournal

. /etc/rc.subr

name="isi_mount_ifs"
start_cmd="echo 'Mounting IFS filesystem...'; mount -a -t efs"
# OneFS is umounted in isi_post_shutdown.
stop_cmd="/usr/bin/true"

load_rc_config $name
run_rc_command "$1"

if [ $? -eq 0 ]; then
    /usr/bin/logger -i -p ifs.notice "IFS mounted successfully."
else
    ERRMSG="IFS failed to mount.  Aborting boot."
    /usr/bin/logger -i -p ifs.err "$ERRMSG"
    echo "Aborting boot."
    /usr/sbin/isi_stop_boot "$ERRMSG"
fi
