source: ipk/source/epg_crossepg_0_61/var/crossepg/crossepg_epgmove.sh@ 9205

Last change on this file since 9205 was 7451, checked in by BPanther, 15 years ago

[ipk] - copy source->source.sh4

  • Property svn:executable set to *
File size: 663 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 "$DBROOT/ext.epg.dat" ] # try on configuration path
12then
13 echo copying ext.epg.dat from $DBROOT
14 $HOME/crossepg_epgcopy "$DBROOT/ext.epg.dat" /hdd/epg.dat
15elif [ -f "/hdd/crossepg/ext.epg.dat" ] # if we have a bad path try with default path
16then
17 echo copying ext.epg.dat from /hdd/crossepg/
18 $HOME/crossepg_epgcopy /hdd/crossepg/ext.epg.dat /hdd/epg.dat
19else # no epg found
20 echo ext.epg.dat not found
21fi
Note: See TracBrowser for help on using the repository browser.