]>
Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | #!/usr/bin/perl |
2 | # DVB firmware extractor | |
3 | # | |
4 | # (c) 2004 Andrew de Quincey | |
5 | # | |
6 | # This program is free software; you can redistribute it and/or modify | |
7 | # it under the terms of the GNU General Public License as published by | |
8 | # the Free Software Foundation; either version 2 of the License, or | |
9 | # (at your option) any later version. | |
10 | # | |
11 | # This program is distributed in the hope that it will be useful, | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | # | |
15 | # GNU General Public License for more details. | |
16 | # | |
17 | # You should have received a copy of the GNU General Public License | |
18 | # along with this program; if not, write to the Free Software | |
19 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
20 | ||
21 | use File::Temp qw/ tempdir /; | |
22 | use IO::Handle; | |
23 | ||
3d8466ec GG |
24 | @components = ( "sp8870", "sp887x", "tda10045", "tda10046", |
25 | "tda10046lifeview", "av7110", "dec2000t", "dec2540t", | |
f6b70ec5 | 26 | "dec3000s", "vp7041", "vp7049", "dibusb", "nxt2002", "nxt2004", |
59800555 | 27 | "or51211", "or51132_qam", "or51132_vsb", "bluebird", |
9254078c | 28 | "opera1", "cx231xx", "cx18", "cx23885", "pvrusb2", "mpc718", |
d2f918bb | 29 | "af9015", "ngene", "az6027", "lme2510_lg", "lme2510c_s7395", |
6fd7dba0 | 30 | "lme2510c_s7395_old", "drxk", "drxk_terratec_h5", |
7a016b08 | 31 | "drxk_hauppauge_hvr930c", "tda10071", "it9135", "drxk_pctv", |
9ca72fa1 | 32 | "drxk_terratec_htc_stick", "sms1xxx_hcw", "si2165"); |
1da177e4 LT |
33 | |
34 | # Check args | |
35 | syntax() if (scalar(@ARGV) != 1); | |
36 | $cid = $ARGV[0]; | |
37 | ||
38 | # Do it! | |
39 | for ($i=0; $i < scalar(@components); $i++) { | |
40 | if ($cid eq $components[$i]) { | |
41 | $outfile = eval($cid); | |
42 | die $@ if $@; | |