#!/bin/sh -e
### BEGIN INIT INFO
# Provides:          pvr modules
# Required-Start:    $local_fs $remote_fs $network $syslog
# Required-Stop:     $local_fs $remote_fs $network $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start/stop pvr modules
### END INIT INFO
#

case $1 in
	start)
		/srv/pvr/bin/run module.init
	;;
	stop)
		/srv/pvr/bin/run module.stop
	;;
	restart)
		$0 stop
		$0 start
	;;
	status)
		echo "//TODO: not yet implemented"
	;;
	*)
		log_success_msg "Usage: $0 {start|stop|restart|status}"
		exit 1
	;;
esac
