]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/init.d/vdr
2 ########################################################################
3 # Begin $rc_base/init.d/vdr
5 # Description : This is a script that starts vdr as deamon
7 # Authors : Arne Fitzenreiter (arne@ipfire.org)
13 ########################################################################
20 boot_mesg
"Starting Video Disk Recorder..."
21 if [ "$(ps -A | grep runvdr)" != "" ]; then
22 boot_mesg
"Error! Alrady run!"
26 if [ ! -e /dev
/dvb
/adapter
0/frontend0
]; then
27 boot_mesg
"Error! No DVB tuner found."
32 if [ "$(ps -A | grep runvdr)" != "" ]; then
33 boot_mesg
"Error! Alrady run!"
38 loadproc screen
-dmS vdr
/opt
/vdr
/bin
/runvdr
42 boot_mesg
"Stopping Video Disk Recorder..."
43 killall
-s KILL
-w runvdr
44 killproc
/opt
/vdr
/bin
/vdr
54 statusproc
/opt
/vdr
/bin
/runvdr
55 statusproc
/opt
/vdr
/bin
/vdr
59 echo "Usage: ${0} {start|stop|restart|status}"
64 # End $rc_base/init.d/vdr