aboutsummaryrefslogtreecommitdiff
path: root/modutils/modprobe.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Michael Tokarev, mjt at tls dot msk dot ru writes:andersen2004-04-061-2/+4
| | | | | | | | | | | | | Fix parsing of all tag-value pairs (in modules.conf in particular). Without this fix, code chokes badly on lines where either value or both tag+value are missing, like bare alias line, or alias w/o the value like alias some-module (syntactically incorrect, but no need for coredumps either). git-svn-id: svn://busybox.net/trunk/busybox@8700 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Michael Tokarev, mjt at tls dot msk dot ru writes:andersen2004-04-061-1/+1
| | | | | | | | | | | alias 'off' parsing fix. It is not alias off module it is alias module off git-svn-id: svn://busybox.net/trunk/busybox@8699 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Michael Tokarev, mjt at tls dot msk dot ru writes:andersen2004-04-061-2/+2
| | | | | | | | | | | | | | | | Initialize all fields of struct dep_t. Without that, e.g. `busybox modprobe -v char-major-10-144' *sometimes* fails this way (strace): write(1, "insmod nvram `\213\f\10\n", 21) = 21 Note the garbage after module name which is taken from the m_options field, which is not initialized in the alias reading/parsing part. (Shell properly complains to this command, telling it can't find the closing backtick) git-svn-id: svn://busybox.net/trunk/busybox@8698 69ca8d6d-28ef-0310-b511-8ec308f3f277
* whitespace cleanupandersen2004-01-101-45/+50
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8269 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Woody Suwalski writes:andersen2004-01-101-0/+1
| | | | | | | | | I have found the problem in modprobe, so here is the promised patch At the current stage I can use it as modprobe while switching between 2.4 and 2.6 seemlesly...(that is good!) git-svn-id: svn://busybox.net/trunk/busybox@8268 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Woody Suwalski writes:andersen2004-01-061-8/+22
| | | | | | | | accept more then 1 dependency per modules.dep line. Also white space cleanup... I think that parsing still breaks sometimes, but is mostly functional now. git-svn-id: svn://busybox.net/trunk/busybox@8261 69ca8d6d-28ef-0310-b511-8ec308f3f277
* re-indentandersen2003-12-241-115/+115
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8179 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Woody Suwalski:andersen2003-12-191-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | Erik, I think we have met online some time ago when I was in Corel/Rebel Netwinder project.... Anyway, I would like to use BB on 2.6.0 initrd. 1.00-pre4 works OK, if insmod is actually presented with a full path to the module. Otherwise - problems (not to mention conflicts when 2.4 modutil is enabled) Here are some patches for insmod and modprobe which try to walk around the default ".o" module format for 2.2/2.4 modules (you have probably noticed it is now .ko in 2.6 ;-)) Trying to steal as little space as possible if 2.6 not enabled... The modprobe is still not perfect on 2.6 - seems to be jamming on some dependencies, but works with some (to be debugged). Anyway after the patches it at least tries to work.... Will there be a 1.00-pre5 coming any time soon? Thanks, Woody git-svn-id: svn://busybox.net/trunk/busybox@8133 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Steven Seeger writes:andersen2003-11-141-1/+2
| | | | | | | | | | | | | | | | | | | Hey guys. I've found a bug in modprobe where it generates bad strings and makes sytem calls with them. The following patch seems to have fixed the problem. It is rather inherited elsewhere, as there seems to be incorrect entries in the list which results in more dependencies than really exist for a given call to mod_process. But, this patch prevents the bad text from going to the screen. You will notice there are cases where lcmd goes unmodified before calling system. Please consider the following patch. Thanks. -Steve git-svn-id: svn://busybox.net/trunk/busybox@7902 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Busybox modprobe has a couple of irritating quirks:bug12003-09-081-4/+33
| | | | | | | | | | | | | | | | - attempting to modprobe a module that is already loaded yields "Failed to load module", whereas modutils quietly ignores such a request. - if a module genuinely can't be loaded due to missing symbols or similar problems, modprobe doesn't produce any useful diagnostics because the output from insmod has been redirected to /dev/null. Here's a patch to address these issue Patch by Philip Blundell git-svn-id: svn://busybox.net/trunk/busybox@7419 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fall back to looking in /lib/modules/modules.dep ifandersen2003-06-201-2/+7
| | | | | | | /lib/modules/<kernel version>/modules.dep is missing git-svn-id: svn://busybox.net/trunk/busybox@6948 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Andrew Dennison:andersen2003-06-201-13/+25
| | | | | | | | | | | | | | | | | | | | | I've had some issues with modprobe which I reported a few months ago. This is still an issue so I decided to sort it out. The attached diff includes the changes against the unstable cvs tree that work for me. Changes are: mod_process() will report success if the module at the head of the list loads successfully. It will also report success if any module unloads successfully. The net result being that modprobe will succeed in the cases outlined below. I've also added error reporting to modprobe -r. Previously it would silently fail (but report success) if the module could not be unloaded. Andrew git-svn-id: svn://busybox.net/trunk/busybox@6947 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major coreutils update.mjn32003-03-191-18/+18
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* print an error message if we can't load a modulesandman2002-12-031-2/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6088 69ca8d6d-28ef-0310-b511-8ec308f3f277
* for some baffling reason tinycc insists that i change this 0 to NULLaaronl2002-08-231-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5356 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - updated a few copyright/left file headerssandman2002-08-051-2/+17
| | | | | | | - documented most of my 0.61 changes in the ChangeLog git-svn-id: svn://busybox.net/trunk/busybox@5150 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed a bug that I had introduced with the new "options" handling.sandman2002-07-291-7/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5115 69ca8d6d-28ef-0310-b511-8ec308f3f277
* modprobe now also uses "options" from /etc/modules.confsandman2002-07-261-55/+99
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5106 69ca8d6d-28ef-0310-b511-8ec308f3f277
* David Frascone <dave@frascone.com> noticed two problems. First, modprobe wasandersen2002-07-021-0/+4
| | | | | | | | | | | trying to call 'insmod -q', which wasn't supported. Secondly, when modprobe was fed blank lines from modules.dep, we ended up calling xstrndup(ptr, -1), which with suitably bad results. David provided a patch to catch the blank lines, and I have added insmod -q support. So modprobe should work again. -Erik git-svn-id: svn://busybox.net/trunk/busybox@4984 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleaned up Erik's fgets -> read patch and fixed a buffer overflowsandman2002-06-041-36/+38
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4854 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Avoid stack munching stdio implementations.andersen2002-06-041-75/+100
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@4850 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed a realloc bug found by Martin Volfsandman2002-06-021-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4848 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added support for /etc/modules.conf parsingsandman2002-05-281-18/+105
| | | | | | | for now only the 'alias' entries are evaluated git-svn-id: svn://busybox.net/trunk/busybox@4811 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some cleanups, some size reductions and some buffer overflow checkssandman2002-05-221-61/+43
| | | | | | | Most of it based on ideas from vodz git-svn-id: svn://busybox.net/trunk/busybox@4789 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Complete rewrite to support stack loading/unloading with propersandman2002-05-141-94/+145
| | | | | | | handling of duplicates in the dependencies list. git-svn-id: svn://busybox.net/trunk/busybox@4775 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Robert Griebl <griebl@gmx.de> to support modprobe -r properly,andersen2002-05-031-36/+57
| | | | | | | merged in with the latest and greatest. git-svn-id: svn://busybox.net/trunk/busybox@4730 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make verbose and show_only work as expectedandersen2002-05-031-7/+13
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@4728 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Reworked by Robert Griebl <griebl@gmx.de> to support properandersen2002-04-261-0/+188
| | | | | | | module dependancies. git-svn-id: svn://busybox.net/trunk/busybox@4658 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add space before module name (noted by Ron Yorston).kraai2001-11-271-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3814 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanup some warnings and a really obvious bug.andersen2001-07-251-4/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3141 69ca8d6d-28ef-0310-b511-8ec308f3f277
* An initial modproble implementation. Quite suboptimal still,andersen2001-07-221-0/+121
but it does work... git-svn-id: svn://busybox.net/trunk/busybox@3135 69ca8d6d-28ef-0310-b511-8ec308f3f277