]>
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! Already running!"
26 if [ ! -e /dev
/dvb
/adapter
0/frontend0
]; then
27 boot_mesg
"Error! No DVB tuner found."
31 loadproc screen
-dmS vdr
/opt
/vdr
/bin
/runvdr
35 boot_mesg
"Stopping Video Disk Recorder..."
36 killall
-s KILL
-w runvdr
37 killproc
/opt
/vdr
/bin
/vdr
47 statusproc
/opt
/vdr
/bin
/runvdr
48 statusproc
/opt
/vdr
/bin
/vdr
52 echo "Usage: ${0} {start|stop|restart|status}"
57 # End $rc_base/init.d/vdr