]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - config/vdr/bin/runvdr
3 # runvdr: Loads the DVB driver and runs VDR
5 # If VDR exits abnormally, the driver will be reloaded
8 # Any command line parameters will be passed on to the
9 # actual 'vdr' program.
12 PLUGOPTS
="-Pstreamdev-server"
15 VDRCMD
="/bin/nice --11 $VDRPRG -w 60 -c /opt/vdr/etc $PLUGOPTS $*"
17 KILL
="killall -q -TERM"
19 if [ "$(ps -A | grep " vdr
")" != "" ]; then
20 echo Error
! VDR is already running
!
28 # If you have stability Problems at tuning or similar
29 # unload and reload the dvb-modules here ...
30 # Example is for Hauppauge Nexus 2.0
38 # Check if DVB device is present / remove this check if you
39 # would use vdr as streaming client only
41 if [ ! -e /dev
/dvb
/adapter
0/frontend0
]; then
42 echo No DVB tuner found
!
49 if test $?
-eq 0 -o $?
-eq 2; then exit; fi
52 echo "`date` restarting VDR"