modprobe-small: support "blacklist" keyword in /etc/modules/<modulename>
This commit is contained in:
parent
c4e4b6b936
commit
279ca69727
@ -600,7 +600,7 @@ static void process_module(char *name, const char *cmdline_options)
|
|||||||
free(deps);
|
free(deps);
|
||||||
|
|
||||||
/* insmod -> load it */
|
/* insmod -> load it */
|
||||||
if (!is_rmmod) {
|
if (!is_rmmod && !strstr(options, "blacklist")) {
|
||||||
errno = 0;
|
errno = 0;
|
||||||
if (load_module(info->pathname, options) != 0) {
|
if (load_module(info->pathname, options) != 0) {
|
||||||
if (EEXIST != errno) {
|
if (EEXIST != errno) {
|
||||||
|
Loading…
Reference in New Issue
Block a user