#!/bin/sh
EMUNAME="OScam"
case "$1" in
start)
	ulimit -s 1024
	/usr/bin/oscam --config-dir /etc/tuxbox/config/oscam --daemon --pidfile /tmp/oscam.pid --restart 2 --utf8
	;;
stop)
	kill `cat /tmp/oscam.pid` 2> /dev/null
	;;
restart|reload)
	$0 stop
	sleep 1
	$0 start
	;;
version)
	echo "svn8"
	;;
info)
	echo "oscam svn8"
	;;
*)
	echo "Usage: $0 start|stop|restart"
	exit 1
	;;
esac
exit 0
