|
Here's a handy howto by user samot4 on adding the internet-epg script and installing internet-epg itself.
The Fantacy Epg Install script: #!/bin/sh
front_ioctl --devname /dev/tts/1 --job puts 'EPG Install'
TMPFILE=/var/data/FT-EPG_2.13.6.tar.gz
UPDIR="http://update.fantacy-team.net/files/epg/FT-EPG_2.13.6.tar.gz"
PINGDEST="update.fantacy-team.net"
DEVICE="/dev/ide/host0/bus0/target0/lun0/part3"
MINFREE=100 # MB below this do warning
ping -q -c 3 $PINGDEST > /dev/null
if [ $? != 0 ]; then
echo show_mess 3 Connection to FantacyTeam FAILED! > /dev/commander
sleep 5
else
echo show_mess 3 Connection to FantacyTeam OK > /dev/commander
sleep 2
######################################
# Check if enough free disk space #
######################################
ISFREE=0
echo show_mess 3 Checking if enough free space > /dev/commander
sleep 2
ISFREE=`df | grep -E $DEVICE | awk '{ print $4 }'`
ISMB=`expr $ISFREE / 1024`
if [ $ISMB -le $MINFREE ]; then
echo show_mess 3 WARNING: $DEVICE only $ISMB MB free Aborting > /dev/commander
sleep 8
REST=`expr $MINFREE - $ISMB`
echo show_mess 3 Free $REST MB from $DEVICE and try again > /dev/commander
sleep 8
else
echo show_mess 3 Free space OK > /dev/commander
sleep 2
######################################
# Downloading epg #
######################################
echo show_mess 3 Downloading Setup Files 2-10min > /dev/commander
sleep 2
wget -q $UPDIR -O $TMPFILE
######################################
# Check if file was retriveld #
######################################
if [ -s $TMPFILE ]; then
echo show_mess 3 Running Install 2-5min > /dev/commander
#if [ $FSIZER -eq $FSIZE ]; then
if ! tar -zxv -f $TMPFILE -C /; then
echo show_mess 3 failed to untar the archive. > /dev/commander
else
chmod 777 /opt/bin/tv_grab_no
chmod 755 /var/media/epg/software/epg
cd /var/media/epg/data
../software/epg.php --setup
rm $TMPFILE
echo show_mess 3 Int.EPG file Innstaled OK Restart > /dev/commander
sleep 8
fi
else
echo show_mess 3 Problem downloding files try again > /dev/commander
rm $TMPFILE
sleep 5
fi
fi
fi
|
|||