diff options
Diffstat (limited to 'Tools/epg2timers/update_timers.old')
-rwxr-xr-x | Tools/epg2timers/update_timers.old | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/Tools/epg2timers/update_timers.old b/Tools/epg2timers/update_timers.old deleted file mode 100755 index c4c3f5c..0000000 --- a/Tools/epg2timers/update_timers.old +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -# update_timers: load a new "merkliste" from http://tvtv.de -# and create a new VDR timer configuration file (timers.conf) -# from it. Restart VDR if the timers have changed. - -TOOLDIR="/home/cko/bin" -VDRDIR="/home/cko/VDR" - -cd /tmp -rm -f merkliste.html epgtimers.new epgtimers.old vdrtimers.old -ping -c 2 www.tvtv.de -$TOOLDIR/get_merkliste.pl -if [ -s merkliste.html ] ; then - $TOOLDIR/epg2timers $VDRDIR/channels.conf < merkliste.html | sort -t: +2.0 -5.0 > epgtimers.new - fgrep '(epg2timers)' $VDRDIR/timers.conf | sort -t: +2.0 -5.0 > epgtimers.old - if ! cmp -s epgtimers.old epgtimers.new ; then - /sbin/killproc $VDRDIR/vdr - fgrep -v '(epg2timers)' $VDRDIR/timers.conf > vdrtimers.old - cat epgtimers.new vdrtimers.old | sort -t: +2.0 -5.0 > $VDRDIR/timers.conf - echo "Timers updated." - fi -fi -rm -f merkliste.html epgtimers.new epgtimers.old vdrtimers.old |