#!/bin/sh
start_conflict_check()
{
	process=`ps | grep dvblink_server | grep -v grep`

	if [ "x$process" == "x" ]; then
		return;
	fi
	case $SYNOPKG_DSM_LANGUAGE in
		chs)
			echo "This package conflicts with [DVBLink]. Please stop the third-party package first and try again." > $SYNOPKG_TEMP_LOGFILE 
		;;
		cht)
			echo "此套件與 [DVBLink] 產生衝突，請先停用該協力廠商套件然後再試一次。" > $SYNOPKG_TEMP_LOGFILE 
		;;
		csy)
			echo "This package conflicts with [DVBLink]. Please stop the third-party package first and try again." > $SYNOPKG_TEMP_LOGFILE 
		;;
		dan)
			echo "This package conflicts with [DVBLink]. Please stop the third-party package first and try again." > $SYNOPKG_TEMP_LOGFILE 
		;;
		enu)
			echo "This package conflicts with [DVBLink]. Please stop the third-party package first and try again." > $SYNOPKG_TEMP_LOGFILE 
		;;
		fre)
			echo "This package conflicts with [DVBLink]. Please stop the third-party package first and try again." > $SYNOPKG_TEMP_LOGFILE 
		;;
		ger)
			echo "This package conflicts with [DVBLink]. Please stop the third-party package first and try again." > $SYNOPKG_TEMP_LOGFILE 
		;;
		hun)
			echo "This package conflicts with [DVBLink]. Please stop the third-party package first and try again." > $SYNOPKG_TEMP_LOGFILE 
		;;
		ita)
			echo "This package conflicts with [DVBLink]. Please stop the third-party package first and try again." > $SYNOPKG_TEMP_LOGFILE 
		;;
		jpn)
			echo "This package conflicts with [DVBLink]. Please stop the third-party package first and try again." > $SYNOPKG_TEMP_LOGFILE 
		;;
		krn)
			echo "This package conflicts with [DVBLink]. Please stop the third-party package first and try again." > $SYNOPKG_TEMP_LOGFILE 
		;;
		nld)
			echo "This package conflicts with [DVBLink]. Please stop the third-party package first and try again." > $SYNOPKG_TEMP_LOGFILE 
		;;
		nor)
			echo "This package conflicts with [DVBLink]. Please stop the third-party package first and try again." > $SYNOPKG_TEMP_LOGFILE 
		;;
		plk)
			echo "This package conflicts with [DVBLink]. Please stop the third-party package first and try again." > $SYNOPKG_TEMP_LOGFILE 
		;;
		ptb)
			echo "This package conflicts with [DVBLink]. Please stop the third-party package first and try again." > $SYNOPKG_TEMP_LOGFILE 
		;;
		ptg)
			echo "This package conflicts with [DVBLink]. Please stop the third-party package first and try again." > $SYNOPKG_TEMP_LOGFILE 
		;;
		rus)
			echo "This package conflicts with [DVBLink]. Please stop the third-party package first and try again." > $SYNOPKG_TEMP_LOGFILE 
		;;
		spn)
			echo "This package conflicts with [DVBLink]. Please stop the third-party package first and try again." > $SYNOPKG_TEMP_LOGFILE 
		;;
		sve)
			echo "This package conflicts with [DVBLink]. Please stop the third-party package first and try again." > $SYNOPKG_TEMP_LOGFILE 
		;;
		trk)
			echo "This package conflicts with [DVBLink]. Please stop the third-party package first and try again." > $SYNOPKG_TEMP_LOGFILE 
		;;
		*)
			echo "This package conflicts with [DVBLink]. Please stop the third-party package first and try again." > $SYNOPKG_TEMP_LOGFILE 
		;;
	esac
	exit 1
}

