#!/bin/bash
#
# Intel VCA Software Stack (VCASS)
#
# Copyright(c) 2015 Intel Corporation.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2, as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Intel VCA Scripts.
#

# vcactl
#
# chkconfig: 2345 90 10
# description: Auto boot script for VCA
#

# Source function library.
. /etc/init.d/functions

rc=0

# See how we were called.
case "$1" in
  start)
	/etc/vca_config.d/vca_auto_boot.sh start
	rc=$?
	;;
  stop)
	/etc/vca_config.d/vca_auto_boot.sh stop
	rc=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
