Stuart,

bin/depmod.pl looks for either 2.4 or 2.6 series kernels to determine
formating of /lib/modules/<kernel>/modules.dep.  The older 2.4 series
uses backslashes and blank lines formatting whereas the newer kernels
series doesn't.  Unfortunately depmod.pl determiens a 3.x series kernel
should use the old format which breaks modprobe/modinfo.

The attached patch addresses this by making a 2.4 series kernel "old"
and everything else "new".

-- 
Peter Barada
[email protected]

diff --git a/bin/depmod.pl b/bin/depmod.pl
index 7f277ac..feb8b2a 100755
--- a/bin/depmod.pl
+++ b/bin/depmod.pl
@@ -147,10 +147,11 @@ if ($stdout == 0) {
     open(STDOUT, ">$basedir/modules.dep")
                              or die "cannot open $basedir/modules.dep: $!";
 }
-my $kseries = $basedir =~ m,/2\.6\.[^/]*, ? '2.6' : '2.4';
+
+my $kseries = $basedir =~ m,/2\.4\.[^/]*, ? 'old' : 'new';
 
 foreach my $module ( reverse sort bydep keys %$mod ) {
-    if($kseries eq '2.4') {
+    if($kseries eq 'old') {
 	    print "$module:\t";
 	    my @sorted = sort bydep keys %{$mod->{$module}};
 	    print join(" \\\n\t",@sorted);
_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib

Reply via email to