webif/etc/init.d/S60parseepg
hummypkg b89b9cd5c9 add L7.26 loader. Restart parseEPG on failure
git-svn-id: file:///root/webif/svn/pkg/webif/trunk@3330 2a923420-c742-0410-a762-8d5b09965624
2016-10-31 21:28:04 +00:00

32 lines
417 B
Bash
Executable File

#!/bin/sh
if [ "`cat /etc/model`" = HD ]; then
epg=/media/drive1/epgsavedata
epgdb=/media/drive1/epg.db
else
epg=/mnt/hd1/dvbepg/epg.dat
epgdb=/mnt/hd1/epg.db
fi
case "$1" in
start)
(
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
;;
*)
exit 1
;;
esac
exit 0