[DVB patch 12/48] get_dvb_firmware: new unshield version

Johannes Stezenbach
2005-03-22T02:26:38Z

[-- Attachment #1: dvb-fwscript-newunshield.patch --]
[-- Type: text/plain, Size: 1297 bytes --]

patch by Mattias Holmlund: support new version of unshield for
sp887x firmware extraction (changed cmdline parameters)

Signed-off-by: Johannes Stezenbach <js@linuxtv.org>

get_dvb_firmware | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

Index: linux-2.6.12-rc1-mm1/Documentation/dvb/get_dvb_firmware
===================================================================
--- linux-2.6.12-rc1-mm1.orig/Documentation/dvb/get_dvb_firmware 2005-03-21 23:27:58.000000000 +0100
+++ linux-2.6.12-rc1-mm1/Documentation/dvb/get_dvb_firmware 2005-03-22 00:15:20.000000000 +0100
@@ -79,8 +79,8 @@ sub sp887x {
wgetfile($sourcefile, $url);
unzip($sourcefile, $tmpdir);
unshield("$tmpdir/$cabfile", $tmpdir);
- verify("$tmpdir/sc_main.mc", $hash);
- copy("$tmpdir/sc_main.mc", $outfile);
+ verify("$tmpdir/ZEnglish/sc_main.mc", $hash);
+ copy("$tmpdir/ZEnglish/sc_main.mc", $outfile);

$outfile;
}
@@ -292,7 +292,7 @@ sub unzip {
sub unshield {
my ($sourcefile, $todir) = @_;

- system("unshield -d \"$todir\" \"$sourcefile\" > /dev/null" ) and die ("unshield failed - unable to extract firmware");
+ system("unshield x -d \"$todir\" \"$sourcefile\" > /dev/null" ) and die ("unshield failed - unable to extract firmware");
}

sub verify {

--