add vdr streamdev-plugin

git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1290 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
arne_f
2008-03-28 23:56:52 +00:00
parent da5529e186
commit 98248635bf
6 changed files with 170 additions and 43 deletions

View File

@@ -0,0 +1,46 @@
#!/bin/sh
########################################################################
# Begin $rc_base/init.d/vdr
#
# Description : This is a script that starts vdr as deamon
#
# Authors : Arne Fitzenreiter (arne@ipfire.org)
#
# Version : 01.00
#
# Notes :
#
########################################################################
. /etc/sysconfig/rc
. ${rc_functions}
case "${1}" in
start)
boot_mesg "Starting Video Disk Recorder..."
cd /opt/vdr
loadproc screen -dmS vdr /opt/vdr/bin/vdr -Pstreamdev-server
;;
stop)
boot_mesg "Stopping Video Disk Recorder..."
killproc /opt/vdr/bin/vdr
;;
restart)
${0} stop
sleep 1
${0} start
;;
status)
statusproc /opt/vdr/bin/vdr
;;
*)
echo "Usage: ${0} {start|stop|restart|status}"
exit 1
;;
esac
# End $rc_base/init.d/vdr