diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-10 06:52:45 +0300 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-10 06:52:45 +0300 |
commit | 725b5a387a392f6282756c649adf411e30535eb5 (patch) | |
tree | fd9bdbb6f0e5cb4f1b0370d14b6814b3acc40279 | |
parent | 38d3e64d2593aa5bc6bb578e1cd9a73a2d4b26fa (diff) |
modprobe: it's not an error if module is already loaded. Closes bug 833
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | modutils/modprobe.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modutils/modprobe.c b/modutils/modprobe.c index ca85ee76b..2860ae05d 100644 --- a/modutils/modprobe.c +++ b/modutils/modprobe.c @@ -290,6 +290,8 @@ static int do_modprobe(struct module_entry *m) options = gather_options_str(options, G.cmdline_mopts); rc = bb_init_module(fn, options); DBG("loaded %s '%s', rc:%d", fn, options, rc); + if (rc == EEXIST) + rc = 0; free(options); if (rc) { bb_error_msg("failed to load module %s (%s): %s", |