#!/bin/sh
###############################################################################
#
#          Dell Inc. PROPRIETARY INFORMATION
# This software is supplied under the terms of a license agreement or
# nondisclosure agreement with Dell Inc. and may not
# be copied or disclosed except in accordance with the terms of that
# agreement.
#
# Copyright (c) 2000-2018 Dell Inc. All Rights Reserved.
#
# Module Name:
#
#   instsvcdrv
#
# Abstract/Purpose:
#
#   Systems Management Device Drivers System V compatability script.
#   This script is only to allow backward compatabillity for consumers who
#   who still refer to sys V init scripts.
#
# Environment:
#
#   Linux
#
###############################################################################

# Standard status codes for commands other than "status"
STATUS_NO_ERROR=0
STATUS_GENERIC_ERROR=1
STATUS_INVALID_ARG=2
STATUS_NOT_IMPLEMENTED=3

###############################################################################
# Check command line parameter for action to perform
###############################################################################

case "$1" in
	start)
		systemctl start instsvcdrv.service
		EXIT_STATUS=$?
		;;

	stop)
		systemctl stop instsvcdrv.service
		EXIT_STATUS=$?
		;;

	restart|force-reload)
		systemctl restart instsvcdrv.service
		EXIT_STATUS=$?
		;;

	status)
		systemctl status instsvcdrv.service
		EXIT_STATUS=$?
		;;

	*)
		EXIT_STATUS=${STATUS_NOT_IMPLEMENTED}
esac

exit ${EXIT_STATUS}


###############################################################################
# End Script
###############################################################################
