update epg extraction
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@462 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
parent
218ff8edfb
commit
2128aded40
@ -1,10 +1,10 @@
|
|||||||
Package: webif
|
Package: webif
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Section: web
|
Section: web
|
||||||
Version: 0.7.6-1
|
Version: 0.7.7
|
||||||
Architecture: mipsel
|
Architecture: mipsel
|
||||||
Maintainer: af123@hummypkg.org.uk
|
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
|
Replaces: af123-webif
|
||||||
Conflicts: af123-webif
|
Conflicts: af123-webif
|
||||||
Suggests: ffmpeg,webif-iphone
|
Suggests: ffmpeg,webif-iphone
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/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
|
if [ -f /mnt/hd1/dvbepg/epg.dat ]; then
|
||||||
epg=/mnt/hd1/dvbepg/epg.dat
|
epg=/mnt/hd1/dvbepg/epg.dat
|
||||||
epgdb=/mnt/hd1/epg.db
|
epgdb=/mnt/hd1/epg.db
|
||||||
@ -14,30 +10,15 @@ fi
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
(
|
/mod/bin/epg -f $epg sqlitedumpd $epgdb > /tmp/epgd.log &
|
||||||
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
|
|
||||||
) &
|
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
|
killall -q epg
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user