#!/bin/bash
# %full_filespec: media:ascii:hsw#1 %
#
# vim:set ts=3 sw=3:
######################################################################
#
# Copyright (C) 2002-2007 Dialogic Corporation.  All Rights Reserved.
# All names, products, and services mentioned herein are the
# trademarks or registered trademarks of their respective
# organizations and are the sole property of their respective
# owners.
#####################################################################
####################################################################

# Start each CT Platform
SCRIPTNAME=`basename $0`
                                                                                
case $SCRIPTNAME in

	'mediaStart')
		echo "Starting Dialogic(r) DM-family board(s)."
		for cmd in ${INTEL_DIALOGIC_DIR}/init.d/ctplatform/order/*
		do
			$cmd startall
			RC=$?
			if [ $RC != 0 ]
			then 
				echo "$cmd start failed"
			fi
		done
		;;

	'mediaStop')
  		for cmd in ${INTEL_DIALOGIC_DIR}/init.d/ctplatform/order/*
		do
			$cmd stopall
			RC=$?
			if [ $RC != 0 ]
			then 
				echo "$cmd stop failed"
			fi
		done
		;;
esac
exit $RC

