From 2128aded40d8a241c6aaae66c3d1f8ba5f7a852c Mon Sep 17 00:00:00 2001 From: hummypkg Date: Thu, 20 Oct 2011 23:24:25 +0000 Subject: [PATCH] update epg extraction git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@462 2a923420-c742-0410-a762-8d5b09965624 --- CONTROL/control | 4 ++-- etc/init.d/S60parseepg | 27 ++++----------------------- 2 files changed, 6 insertions(+), 25 deletions(-) diff --git a/CONTROL/control b/CONTROL/control index e4c39e7..fc66faa 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,10 +1,10 @@ Package: webif Priority: optional Section: web -Version: 0.7.6-1 +Version: 0.7.7 Architecture: mipsel Maintainer: af123@hummypkg.org.uk -Depends: mongoose(>=3.0-2),jim(>=0.71-1),jim-sqlite3(>=0.71-1),jim-cgi(>=0.4),jim-oo,jim-pack,service-control,busybox(>=1.18.3-1),lsof,epg(>=1.0.5),hmt(>=1.0.6),ssmtp +Depends: mongoose(>=3.0-2),jim(>=0.71-1),jim-sqlite3(>=0.71-1),jim-cgi(>=0.4),jim-oo,jim-pack,service-control,busybox(>=1.18.3-1),lsof,epg(>=1.0.6),hmt(>=1.0.6),ssmtp Replaces: af123-webif Conflicts: af123-webif Suggests: ffmpeg,webif-iphone diff --git a/etc/init.d/S60parseepg b/etc/init.d/S60parseepg index 75e5b09..ea2287d 100755 --- a/etc/init.d/S60parseepg +++ b/etc/init.d/S60parseepg @@ -1,9 +1,5 @@ #!/bin/sh -export PATH=/mod/bin:/mod/usr/bin:/mod/bin/busybox:/bin:/sbin -export LD_LIBRARY_PATH=/mod/lib:/lib:/usr/lib -export TZ=GMT+0BST,M3.5.0/1,M10.5.0/2 - if [ -f /mnt/hd1/dvbepg/epg.dat ]; then epg=/mnt/hd1/dvbepg/epg.dat epgdb=/mnt/hd1/epg.db @@ -14,30 +10,15 @@ fi case "$1" in start) - ( - while [ 1 ]; do - if [ -f $epgdb ]; then - touch $epgdb.stamp - now=`stat -c %Z $epgdb.stamp` - dbstamp=`stat -c %Z $epgdb` - age=`expr $now - $dbstamp` - else - age=99999 - fi - echo "EPG Database age: $age" - if [ $age -gt 28800 ]; then - sleep 120 - echo "Generating EPG database..." - /mod/bin/epg -f $epg sqlitedump $epgdb - fi - sleep 3712 - done - ) & + /mod/bin/epg -f $epg sqlitedumpd $epgdb > /tmp/epgd.log & ;; stop) + killall -q epg ;; *) exit 1 ;; esac +exit 0 +