2012-10-15 21:32:25 +00:00
|
|
|
#!/bin/sh
|
2011-07-11 23:29:21 +00:00
|
|
|
|
2012-10-15 21:32:25 +00:00
|
|
|
PATH=$PATH:/mod/bin export PATH
|
|
|
|
|
|
|
|
echo "Content-Type: text/plain"
|
|
|
|
echo ""
|
2011-07-11 23:29:21 +00:00
|
|
|
|
2012-10-15 21:32:25 +00:00
|
|
|
[ -n "$QUERY_STRING" ] && data="${QUERY_STRING##*=}" || data=epg
|
2011-07-12 18:57:30 +00:00
|
|
|
|
2012-10-15 21:32:25 +00:00
|
|
|
case $data in
|
|
|
|
channels)
|
|
|
|
sqlite3 -header -batch -separator ' ' \
|
|
|
|
/var/lib/humaxtv/channel.db '
|
|
|
|
select * from TBL_SVC;
|
|
|
|
'
|
|
|
|
;;
|
2011-09-09 19:38:37 +00:00
|
|
|
|
2011-07-12 18:57:30 +00:00
|
|
|
|
2012-10-15 21:32:25 +00:00
|
|
|
*) /mod/bin/epg -p dump ;;
|
|
|
|
esac
|
2011-07-12 18:57:30 +00:00
|
|
|
|
2012-10-15 21:32:25 +00:00
|
|
|
exit 0
|
2011-07-11 23:29:21 +00:00
|
|
|
|