#!/bin/sh
# $1 von welchen Sender kommt EPG?
# $2 an welchen Sender wird EPG verfuettert?
/usr/lib/vdr/svdrpsend.pl lste $1 | grep 215 | cut -b 5- | sed s/$1/$2/g | sed "s/End of EPG data\\r/./" > /tmp/epg-tmp
( sleep 2 ; echo pute ; cat /tmp/epg-tmp ; sleep 2 ) | telnet localhost 6419
rm /tmp/epg-tmp
