| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 | HOME=`echo $0 | sed "s/crossepg_prepare_pre_start\.sh//"`
|
|---|
| 3 | ENIGMA2PRESTART="/usr/bin/enigma2_pre_start.sh"
|
|---|
| 4 |
|
|---|
| 5 | if [ -f "/var/crossepg/crossepg.config" ]
|
|---|
| 6 | then
|
|---|
| 7 | HOME="/var/crossepg/"
|
|---|
| 8 | else
|
|---|
| 9 | HOME="/usr/crossepg/"
|
|---|
| 10 | fi
|
|---|
| 11 |
|
|---|
| 12 | if [ -f "$ENIGMA2PRESTART" ]
|
|---|
| 13 | then
|
|---|
| 14 | TMP=`cat /usr/bin/enigma2_pre_start.sh | grep "crossepg_epgmove\.sh"`
|
|---|
| 15 | if [ ! -n "$TMP" ]
|
|---|
| 16 | then
|
|---|
| 17 | echo "" >> $ENIGMA2PRESTART
|
|---|
| 18 | echo "${HOME}crossepg_epgmove.sh" >> $ENIGMA2PRESTART
|
|---|
| 19 | chmod +x $ENIGMA2PRESTART
|
|---|
| 20 | fi
|
|---|
| 21 | else
|
|---|
| 22 | echo "#!/bin/sh" > $ENIGMA2PRESTART
|
|---|
| 23 | echo "${HOME}crossepg_epgmove.sh" >> $ENIGMA2PRESTART
|
|---|
| 24 | chmod +x $ENIGMA2PRESTART
|
|---|
| 25 | fi
|
|---|
| 26 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.