modprobe-small: support "blacklist" keyword in /etc/modules/<modulename>
authorDenis Vlasenko <vda.linux@googlemail.com>
Tue, 26 Aug 2008 01:32:33 +0000 (01:32 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Tue, 26 Aug 2008 01:32:33 +0000 (01:32 -0000)
modutils/modprobe-small.c

index 06c45742b86e711a3e6c48a3cf65f06a1472387e..5e33cdc57d42247941c416b9930f34fe2bba7899 100644 (file)
@@ -600,7 +600,7 @@ static void process_module(char *name, const char *cmdline_options)
        free(deps);
 
        /* insmod -> load it */
-       if (!is_rmmod) {
+       if (!is_rmmod && !strstr(options, "blacklist")) {
                errno = 0;
                if (load_module(info->pathname, options) != 0) {
                        if (EEXIST != errno) {