6e06f3875a
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1170 2a923420-c742-0410-a762-8d5b09965624
24 lines
334 B
Bash
Executable File
24 lines
334 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PATH=$PATH:/mod/bin export PATH
|
|
|
|
echo "Content-Type: text/plain"
|
|
echo ""
|
|
|
|
[ -n "$QUERY_STRING" ] && data="${QUERY_STRING##*=}" || data=epg
|
|
|
|
case $data in
|
|
channels)
|
|
sqlite3 -header -batch -separator ' ' \
|
|
/var/lib/humaxtv/channel.db '
|
|
select * from TBL_SVC;
|
|
'
|
|
;;
|
|
|
|
|
|
*) /mod/bin/epg -p dump ;;
|
|
esac
|
|
|
|
exit 0
|
|
|