modprobe: it's not an error if module is already loaded. Closes bug 833
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
38d3e64d25
commit
725b5a387a
@ -290,6 +290,8 @@ static int do_modprobe(struct module_entry *m)
|
|||||||
options = gather_options_str(options, G.cmdline_mopts);
|
options = gather_options_str(options, G.cmdline_mopts);
|
||||||
rc = bb_init_module(fn, options);
|
rc = bb_init_module(fn, options);
|
||||||
DBG("loaded %s '%s', rc:%d", fn, options, rc);
|
DBG("loaded %s '%s', rc:%d", fn, options, rc);
|
||||||
|
if (rc == EEXIST)
|
||||||
|
rc = 0;
|
||||||
free(options);
|
free(options);
|
||||||
if (rc) {
|
if (rc) {
|
||||||
bb_error_msg("failed to load module %s (%s): %s",
|
bb_error_msg("failed to load module %s (%s): %s",
|
||||||
|
Loading…
Reference in New Issue
Block a user