postinst: Accept absolute paths in modules.dep generated by the lenny version of module-init-tools (Closes: #552610)
svn path=/dists/trunk/linux-2.6/; revision=14532
This commit is contained in:
parent
817fee2c80
commit
1ea43a7025
|
@ -806,8 +806,10 @@ if ( -d "$modules_base/$version" ) {
|
|||
my $module_path = $module_paths{$module};
|
||||
if (defined($module_path)) {
|
||||
my $first = 1;
|
||||
open(MODINFO,
|
||||
"modinfo -F firmware '$modules_base/$version/$module_path' |");
|
||||
if ($module_path !~ m|^/|) {
|
||||
$module_path = "$modules_base/$version/$module_path";
|
||||
}
|
||||
open(MODINFO, "modinfo -F firmware '$module_path' |");
|
||||
while (<MODINFO>) {
|
||||
chomp;
|
||||
my $firmware = $_;
|
||||
|
|
Loading…
Reference in New Issue