2011-09-29 22:58:13 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2013-01-26 23:09:34 +00:00
|
|
|
if [ "`cat /etc/model`" = HD ]; then
|
2011-09-29 22:58:13 +00:00
|
|
|
epg=/media/drive1/epgsavedata
|
|
|
|
epgdb=/media/drive1/epg.db
|
2013-01-26 23:09:34 +00:00
|
|
|
else
|
|
|
|
epg=/mnt/hd1/dvbepg/epg.dat
|
|
|
|
epgdb=/mnt/hd1/epg.db
|
2011-09-29 22:58:13 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
2016-10-31 21:28:04 +00:00
|
|
|
(
|
|
|
|
ulimit -c unlimited
|
|
|
|
while [ 1 ]; do
|
|
|
|
/mod/bin/epg -f $epg sqlitedumpd $epgdb \
|
|
|
|
> /tmp/epgd.log 2>&1
|
|
|
|
[ $? -eq 143 ] && break
|
|
|
|
done
|
|
|
|
)&
|
2011-09-29 22:58:13 +00:00
|
|
|
;;
|
|
|
|
stop)
|
2011-10-20 23:24:25 +00:00
|
|
|
killall -q epg
|
2011-09-29 22:58:13 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2011-10-20 23:24:25 +00:00
|
|
|
exit 0
|
|
|
|
|