From b89b9cd5c906e504a1ffa990a162eeb78b440628 Mon Sep 17 00:00:00 2001 From: hummypkg Date: Mon, 31 Oct 2016 21:28:04 +0000 Subject: [PATCH] add L7.26 loader. Restart parseEPG on failure git-svn-id: file:///root/webif/svn/pkg/webif/trunk@3330 2a923420-c742-0410-a762-8d5b09965624 --- CONTROL/control | 2 +- etc/init.d/S60parseepg | 9 ++++++++- webif/lib/system.class | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CONTROL/control b/CONTROL/control index c03f0d5..2cf77c9 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: webif Priority: optional Section: web -Version: 1.3.2-8 +Version: 1.3.2-9 Architecture: mipsel Maintainer: af123@hpkg.tv Depends: tcpfix,webif-channelicons(>=1.1.24),lighttpd(>=1.4.39-1),jim(>=0.76-2),jim-oo,jim-sqlite3(>=0.76),jim-cgi(>=0.7-1),jim-binary(>=0.76),service-control(>=2.1),busybox(>=1.20.2-1),lsof(>=4.87),epg(>=1.2.3),hmt(>=2.0.10),ssmtp,cron-daemon(>=1.18.3-3),at(>=3.1.18),anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.1.9),webif-charts(>=1.2-1),stripts(>=1.2.5-3),tmenu(>=1.08),ffmpeg,id3v2,multienv(>=1.6),tcpping(>=1.1),e2fsprogs,wireless-tools(>=29-1),dbupdate,recmon(>=2.0.7),hwctl,nugget(>=0.95) diff --git a/etc/init.d/S60parseepg b/etc/init.d/S60parseepg index ebce40c..6aec064 100755 --- a/etc/init.d/S60parseepg +++ b/etc/init.d/S60parseepg @@ -10,7 +10,14 @@ fi case "$1" in start) - /mod/bin/epg -f $epg sqlitedumpd $epgdb > /tmp/epgd.log 2>&1 & + ( + ulimit -c unlimited + while [ 1 ]; do + /mod/bin/epg -f $epg sqlitedumpd $epgdb \ + > /tmp/epgd.log 2>&1 + [ $? -eq 143 ] && break + done + )& ;; stop) killall -q epg diff --git a/webif/lib/system.class b/webif/lib/system.class index f6d5f61..1aef7a0 100644 --- a/webif/lib/system.class +++ b/webif/lib/system.class @@ -133,6 +133,7 @@ proc {system loaderver} {} {{ver ""}} { "\xec\xe5" { format "a7.31" } "\x59\x9d" { format "a7.33" } "\x72\x5c" { format "a7.34" } + "\xe5\xe3" { format "L7.26" } "\x8f\x7c" { format "L7.27" } default { binary scan $bytes H* hex