#!/bin/sh

# Copyright 2018 by Dell EMC.
# All rights not expressly granted herein are reserved.
# Created in the United States of America.
#
# This digital media is protected by U.S. and international copyright and
# intellectual property laws. Unless otherwise specified, all information
# and screens appearing as part of this digital medium, including
# software, services, documents, text, images, icons, and logos design;
# the selection, assembly, arrangement, and design thereof; and the code
# that enables its presentation, are the sole property of Dell EMC.
#
# Except as otherwise required by applicable law, no part of any
# copyrighted material may be reproduced, modified, translated,
# distributed, published, or transmitted by any means, electronic or
# mechanical, for any purpose, without the prior written consent of Dell EMC.

# PROVIDE: isi_ucodeupdate
# REQUIRE: FILESYSTEMS syslogd

. /etc/rc.subr

name="isi_ucodeupdate_rc"
start_cmd="isi_ucodeupdate_start"

command="/usr/sbin/isi_ucodeupdate"

isi_ucodeupdate_start()
{
	if [ ! -x ${command} ]
	then
		/usr/bin/logger -s "An executable \"${command}\" not found"
		exit 1
	fi

	logger -s "Running ${command}"
	${command}
}

load_rc_config $name
run_rc_command "$1"
