#!/bin/sh

. /etc/init.d/globals

case $1 in
	start)
		if [ -e /var/etc/.emmrd ]; then
			SHOWINFO "starting ..."
			/bin/emmrd /var/tuxbox/config/doscam.cfg /var/etc/.card &
		fi
	;;
	stop)
		SHOWINFO "stopping ..."
		killall emmrd
	;;
	*)
		echo "[${BASENAME}] Usage: $0 {start|stop}"
	;;
esac