On Thu, 7 Mar 2002 23:38, Gordon Rowell wrote:
> On Thu, Mar 07, 2002 at 05:17:33PM +1100, Brad Hards <[EMAIL PROTECTED]> 
wrote:
> > [...]
> > Or is this why we have /lib/modules/2.2.19-7.0.8-e-smith? Does
> > modprobe follow the precedence in /etc/modules.conf, so that the
> > e-smith modules get loaded first?
>
> Precisely. If you put your modules in there they will be found before
> the standard modules. The PPP modules to support PPTP encryption are
> found in this way.
I will repackage to use this.

Note that this arrangement is not universal. For example, the winbond-840 
contrib won't work in the e-smith kernel lib locations, because ethernet.pm 
only looks for drivers in the "normal" lib paths. Here is a naive, untested 
patch (against 5.1.2) that indicates the problem:

--- ethernet.pm.orig    Thu Mar  7 20:25:31 2002
+++ ethernet.pm Thu Mar  7 20:32:24 2002
@@ -85,6 +85,25 @@

     closedir MODULES;

+    my $modules = "/lib/modules/" . $kernel . "-e-smith/net";
+
+    unless (opendir MODULES, $modules)
+    {
+       warn "Could not open network modules directory $modules: $!\n";
+       return;
+    }
+
+    foreach (readdir MODULES)
+    {
+       next if /^\.\.?$/;
+       next if -d;
+
+       s/\.o$//;
+       ++$network_drivers{$_};
+    }
+
+    closedir MODULES;
+
     my $pcitable = "/usr/share/kudzu/pcitable";

     unless (open(PCITABLE, $pcitable))


--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org

Reply via email to