2011-09-29 22:58:13 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ -f /mnt/hd1/dvbepg/epg.dat ]; then
|
|
|
|
epg=/mnt/hd1/dvbepg/epg.dat
|
|
|
|
epgdb=/mnt/hd1/epg.db
|
|
|
|
else
|
|
|
|
epg=/media/drive1/epgsavedata
|
|
|
|
epgdb=/media/drive1/epg.db
|
|
|
|
fi
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
2011-10-20 23:24:25 +00:00
|
|
|
/mod/bin/epg -f $epg sqlitedumpd $epgdb > /tmp/epgd.log &
|
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
|
|
|
|
|