source: ipk/source/epg_crossepg/var/crossepg/crossepg_epgmove.sh@ 17543

Last change on this file since 17543 was 12090, checked in by madie, 14 years ago

[ipk] update crossepg

  • Property svn:executable set to *
File size: 959 bytes
Line 
1#!/bin/sh
2HOME=`echo $0 | sed "s/crossepg_epgmove\.sh//"`
3
4if [ -f "$HOME/crossepg.config" ] # if configuration exist
5then
6 DBROOT=`cat $HOME/crossepg.config | grep db_root= | sed "s/db_root=//"`
7else # else default path
8 DBROOT="/hdd/crossepg"
9fi
10
11if [ -f "/etc/enigma2/settings" ] # if enigma2 configuration exist
12then
13 EPGDAT=`cat /etc/enigma2/settings | grep "config\.misc\.epgcache_filename=" | sed "s/config\.misc\.epgcache_filename=//"`
14else # else default path
15 EPGDAT="/hdd/epg.dat"
16fi
17
18if [ ! -n "$EPGDAT" ]
19then
20 EPGDAT="/hdd/epg.dat"
21fi
22
23if [ -f "$DBROOT/ext.epg.dat" ] # try on configuration path
24then
25 echo copying ext.epg.dat from $DBROOT
26 $HOME/crossepg_epgcopy "$DBROOT/ext.epg.dat" $EPGDAT
27elif [ -f "/hdd/crossepg/ext.epg.dat" ] # if we have a bad path try with default path
28then
29 echo copying ext.epg.dat from /hdd/crossepg/
30 $HOME/crossepg_epgcopy /hdd/crossepg/ext.epg.dat /hdd/epg.dat
31else # no epg found
32 echo ext.epg.dat not found
33fi
Note: See TracBrowser for help on using the repository browser.