#!/bin/sh

DVBDIR='../DVB/driver'
VDRCMD='./vdr -w 60'

while test 1; do
#      (cd $DVBDIR; make reload)
#      sleep 3
      if $VDRCMD; then exit; fi
      date
      echo "restarting VDR"
      sleep 10
      done