Author: sparky                       Date: Sat Jan 21 16:58:56 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- versioned modprobe.d support (/etc/modprobe.d/`uname -r`/)

---- Files affected:
SOURCES:
   module-init-tools-modprobe_d.patch (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SOURCES/module-init-tools-modprobe_d.patch
diff -u SOURCES/module-init-tools-modprobe_d.patch:1.2 
SOURCES/module-init-tools-modprobe_d.patch:1.3
--- SOURCES/module-init-tools-modprobe_d.patch:1.2      Sat Jan 21 17:02:49 2006
+++ SOURCES/module-init-tools-modprobe_d.patch  Sat Jan 21 17:58:51 2006
@@ -11,19 +11,28 @@
                                char sub[strlen(filename) + 1
                                         + strlen(i->d_name) + 1];
  
-@@ -1211,8 +1212,8 @@
+@@ -1209,11 +1210,13 @@
+       return ret;
+ }
  
++#define MODPROBE_D_CONF       "/etc/modprobe.d"
  static const char *default_configs[] = 
  {
--      "/etc/modprobe.conf",
-       "/etc/modprobe.d",
-+      "/etc/modprobe.conf",
++      MODPROBE_D_CONF,
+       "/etc/modprobe.conf",
+-      "/etc/modprobe.d",
  };
++char *modprobe_d_ver = NULL;
  
  static void read_toplevel_config(const char *filename,
-@@ -1236,9 +1237,8 @@
+                                const char *name,
+@@ -1235,10 +1238,12 @@
+       }
  
        /* Try defaults. */
++      if ( modprobe_d_ver != NULL )
++              read_config(modprobe_d_ver, name, dump_only, removing,
++                              options, commands, aliases, blacklist);
        for (i = 0; i < ARRAY_SIZE(default_configs); i++) {
 -              if (read_config(default_configs[i], name, dump_only, removing,
 -                              options, commands, aliases, blacklist))
@@ -33,7 +42,18 @@
        }
  }
  
-@@ -1660,3 +1660,5 @@
+@@ -1547,6 +1552,10 @@
+                                   + sizeof("/modules.symbols")));
+       sprintf(symfilename, "%s/modules.symbols", dirname);
+ 
++      modprobe_d_ver = NOFAIL(malloc(strlen(buf.release)
++                                      + sizeof(MODPROBE_D_CONF) + 1));
++      sprintf(modprobe_d_ver, "%s/%s", MODPROBE_D_CONF, buf.release);
++
+       /* Old-style -t xxx wildcard?  Only with -l. */
+       if (list_only) {
+               if (optind+1 < argc)
+@@ -1660,3 +1669,5 @@
  
        return 0;
  }
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/SOURCES/module-init-tools-modprobe_d.patch?r1=1.2&r2=1.3&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to