summaryrefslogtreecommitdiff
path: root/linux/Documentation/dvb/get_dvb_firmware
diff options
context:
space:
mode:
Diffstat (limited to 'linux/Documentation/dvb/get_dvb_firmware')
-rw-r--r--linux/Documentation/dvb/get_dvb_firmware12
1 files changed, 10 insertions, 2 deletions
diff --git a/linux/Documentation/dvb/get_dvb_firmware b/linux/Documentation/dvb/get_dvb_firmware
index 49a40f845..78ad29174 100644
--- a/linux/Documentation/dvb/get_dvb_firmware
+++ b/linux/Documentation/dvb/get_dvb_firmware
@@ -21,7 +21,7 @@
use File::Temp qw/ tempdir /;
use IO::Handle;
-@components = ( "alps_tdlb7", "sp887x", "tda10045", "tda10046", "av7110", "dec2000t", "dec2540t", "dec3000s", "vp7041" );
+@components = ( "alps_tdlb7", "sp887x", "tda10045", "tda10046", "av7110", "dec2000t", "dec2540t", "dec3000s", "vp7041", "dibusb" );
# Check args
syntax() if (scalar(@ARGV) != 1);
@@ -220,8 +220,16 @@ sub vp7041 {
$outfile;
}
+sub dibusb {
+ my $url = "http://linuxtv.org/cgi-bin/cvsweb.cgi/dvb-kernel/firmware/dvb-dibusb-5.0.0.11.fw?rev=1.1&content-type=text/plain";
+ my $outfile = "dvb-dibusb-5.0.0.11.fw";
+ my $hash = "fa490295a527360ca16dcdf3224ca243";
+ wgetfile($outfile, $url);
+ verify($outfile,$hash);
+ $outfile;
+}
# ---------------------------------------------------------------
# Utilities
@@ -248,7 +256,7 @@ sub wgetfile {
my ($sourcefile, $url) = @_;
if (! -f $sourcefile) {
- system("wget \"$url\"") and die "wget failed - unable to download firmware";
+ system("wget -O \"$sourcefile\" \"$url\"") and die "wget failed - unable to download firmware";
}
}