2 ## Author Heinrich Schwietering (2009)
3 ## Script to start a dvb-t supporting version of AleVT
4 ## Modified and translated by Heiko Baums (2009)
8 zenity
--help > /dev
/null ||
{ echo "Error: You need \"zenity\" to use this script." && exit 1 ; }
9 test -e $MCD ||
{ zenity
--error --text "Error: You need \"aleVT\" with dvb support to use this script." && exit 1 ; }
10 test ! -e ~
/TeletextPIDS.lst
&& zenity
--error --text "~/TeletextPIDS.lst not found" && exit 1
11 STATION
=`cat ~/TeletextPIDS.lst | cut -d ";" -f 1 | zenity --list --title "Please select a station" --column "Station:"` ||
exit 0
12 test "$STATION" ||
{ zenity
--error --text "No station selected." && exit 1 ; }
13 PID
=`grep "$STATION" ~/TeletextPIDS.lst | cut -d ";" -f 2`
14 $MCD -vbi /dev
/dvb
/adapter
0/demux0
-pid $PID -parent 100 > /dev
/null