modprobe-small: support "blacklist" keyword in /etc/modules/<modulename>

This commit is contained in:
Denis Vlasenko 2008-08-26 01:32:33 +00:00
parent c4e4b6b936
commit 279ca69727

View 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) {