File: check.sh

package info (click to toggle)
dvbtune 0.5.ds-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 432 kB
  • sloc: ansic: 2,114; sh: 82; makefile: 48
file content (20 lines) | stat: -rwxr-xr-x 477 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh 
# 
# Read a file containing "FREQ POL SRATE" lines and produce a
# XML file containing the DVB-SI data.
#
# Usage: ./check.sh < astra19.txt > astra19.xml
#
# Change the DVBTUNE variable to point to your installed version of dvbtune
# Change CARD to be 0 (first card), 1 (second card), 2 (third card) etc

DVBTUNE=../dvbtune
CARD=0

echo '<?xml version="1.0"?>'
echo '<satellite>'
while read x y z
do
  $DVBTUNE -c $CARD -f $x -p $y -s $z -i
done
echo '</satellite>'