aboutsummaryrefslogtreecommitdiff
path: root/modutils/modprobe.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* usage.c: remove reference to busybox.hvda2007-05-261-1/+1
| | | | | | | | *: s/include "busybox.h"/include "libbb.h" git-svn-id: svn://busybox.net/trunk/busybox@18696 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style fixes, no code changesvda2007-04-161-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18461 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style fixes, no code changes.vda2007-04-111-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18403 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style fixes. No code changes.vda2007-04-101-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18381 69ca8d6d-28ef-0310-b511-8ec308f3f277
* /etc/modules.conf is a 2.6.x file while /etc/modules.conf and ↵vapier2007-02-081-4/+8
| | | | | | /etc/conf.modules are 2.4.x and older files git-svn-id: svn://busybox.net/trunk/busybox@17811 69ca8d6d-28ef-0310-b511-8ec308f3f277
* touchup style; no functional changesvapier2007-02-081-23/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17810 69ca8d6d-28ef-0310-b511-8ec308f3f277
* suppress warnings about easch <applet>_main() havingvda2007-02-031-0/+1
| | | | | | | no preceding prototype git-svn-id: svn://busybox.net/trunk/busybox@17740 69ca8d6d-28ef-0310-b511-8ec308f3f277
* preparatory patch for -Wwrite-strings #6vda2007-01-291-25/+22
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17659 69ca8d6d-28ef-0310-b511-8ec308f3f277
* modprobe: reformat to match bbox stylevda2006-10-271-291/+291
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16457 69ca8d6d-28ef-0310-b511-8ec308f3f277
* last nail into error_msg() (de)capitalizationvda2006-10-271-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16451 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use skip_whitespace where appropriatevda2006-10-251-8/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16435 69ca8d6d-28ef-0310-b511-8ec308f3f277
* message string changes, mostly for consistency, also -32 bytes in .rodatavda2006-10-201-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16412 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add open_read_close() and similar stuffvda2006-10-141-30/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16377 69ca8d6d-28ef-0310-b511-8ec308f3f277
* getopt_ulflags -> getopt32.vda2006-10-031-2/+2
| | | | | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit. git-svn-id: svn://busybox.net/trunk/busybox@16305 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Yann Morin so modprobe won't return failure if the module getslandley2006-08-221-2/+11
| | | | | | | loaded while it's running (ala multi-device hotplug). git-svn-id: svn://busybox.net/trunk/busybox@15906 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove xcalloc() and convert its callers to xzalloc(). About half of themlandley2006-08-031-2/+2
| | | | | | | | were using "1" as one of the arguments anyway, and as for the rest a multiply and a push isn't noticeably bigger than pushing two arguments on the stack. git-svn-id: svn://busybox.net/trunk/busybox@15771 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidatelandley2006-08-031-22/+13
| | | | | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.) git-svn-id: svn://busybox.net/trunk/busybox@15767 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Yann Morin to fix bug 941, underscores in module aliases.landley2006-07-201-2/+33
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15734 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Yann Morin to look for modules.conf in the right place on 2.6.landley2006-07-191-15/+23
| | | | | | | | Fixes http://bugs.busybox.net/view.php?id=942 git-svn-id: svn://busybox.net/trunk/busybox@15727 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Jean Wolter writes: modprobe checks, whether a module is already loaded. The ↵vapier2006-06-211-1/+1
| | | | | | function used for this currently always returns 0. git-svn-id: svn://busybox.net/trunk/busybox@15474 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Attempt at fixing bug 836, vaguely based on patch from somebody namedlandley2006-06-141-16/+29
| | | | | | | clausmuus, forwarded to me by Yann E. Morin. git-svn-id: svn://busybox.net/trunk/busybox@15382 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Attempt at fixing bug 815 by upgrading bb_spawn() so that builtins are atlandley2006-06-141-21/+2
| | | | | | | | | | | the start of the path. (This should be under the same config option as the standalone shell, but right now that's buried in the shell menu.) Also add the ability to specify CONFIG_BUSYBOX_EXEC_PATH with /proc/self/exe as an overrideable default. git-svn-id: svn://busybox.net/trunk/busybox@15380 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - move #include busybox.h to the very top so we pull in the configaldot2006-06-031-3/+3
| | | | | | | | | and eventual platform specific includes in early. - remove two supposedly superfluous newlines from ...error_msg() in modprobe and use shorter boilerplate while at it. git-svn-id: svn://busybox.net/trunk/busybox@15272 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - patch from Yann E. Morin: makes modprobe understand shell patternsaldot2006-06-031-2/+7
| | | | | | | | | | | | | | (especially '*') in module aliases, such as: "alias usb:v0582p0075d*dc*dsc*dp*ic*isc*ip* snd_usb_audio" Fixes bug #889 842162 10244 645924 1498330 16dcda busybox.old-4.1.20060603-1948 842178 10244 645924 1498346 16dcea busybox.new-4.1.20060603-1948 git-svn-id: svn://busybox.net/trunk/busybox@15271 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - cleanup memory if opening aliases failed and cleanup was requested.aldot2006-05-191-8/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15119 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Avoid a memory leak pointed out by Lucas C. Villa Real.landley2006-05-181-4/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15107 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove bb_strlen() in favor of -fno-builtin-strlen. Saves as many byteslandley2006-05-071-2/+2
| | | | | | | | as the old optimization did (actually does slightly better under gcc 4.0), and simplifies the code. git-svn-id: svn://busybox.net/trunk/busybox@15023 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Modprobe update from Ignacio García Pérez, updating support for modprobe.conf.landley2006-04-101-73/+109
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14783 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - make append_option and multiconvert static.aldot2006-04-031-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14738 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionlandley2006-03-061-1/+1
| | | | | | | definitions. (That should only be on prototypes.) git-svn-id: svn://busybox.net/trunk/busybox@14457 69ca8d6d-28ef-0310-b511-8ec308f3f277
* destroy bug 679, use getopt_ulflags with new feature: usage option. Removed ↵vodz2006-02-021-54/+39
| | | | | | two strdup git-svn-id: svn://busybox.net/trunk/busybox@13797 69ca8d6d-28ef-0310-b511-8ec308f3f277
* I screwed up the last commit: if dt is null when ENABLE_MULTIPLE_OPTIONS islandley2005-12-161-6/+8
| | | | | | | off, we'd dereference the null. Oops. git-svn-id: svn://busybox.net/trunk/busybox@12922 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Better use of the ENABLE guards.landley2005-12-151-7/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@12892 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - remove warning (thanks Yann E. MORIN) and switch to ENABLE_aldot2005-12-141-15/+15
| | | | | | | - typo: s/begining/beginning/g git-svn-id: svn://busybox.net/trunk/busybox@12881 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Minor fix: if(CONFIG) breaks the build when that CONFIG is disabled, it haslandley2005-12-131-1/+1
| | | | | | | to be if(ENABLE). (Make allbareconfig is a good testing thing.) git-svn-id: svn://busybox.net/trunk/busybox@12849 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Yann E. Morin, something to do with bugs 276 and 272.landley2005-12-121-232/+273
| | | | git-svn-id: svn://busybox.net/trunk/busybox@12848 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change CONFIG_MODPROBE_MULTIPOLE_OPTIONS tolandley2005-12-121-11/+11
| | | | | | | CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS. git-svn-id: svn://busybox.net/trunk/busybox@12840 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Yann Morin's modprobe multiple options patch. There's more work to be done,landley2005-11-151-22/+167
| | | | | | | but let's ship 1.1 first... git-svn-id: svn://busybox.net/trunk/busybox@12236 69ca8d6d-28ef-0310-b511-8ec308f3f277
* applying jim bauer's patch to eliminate modprobe's dependencypgf2005-08-041-13/+51
| | | | | | | | on /bin/sh. bug #8. 0000008: modprobe applet is dependent on having a shell git-svn-id: svn://busybox.net/trunk/busybox@11043 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Bernhard Fischer to make a bunch of symbols staticandersen2005-04-161-1/+1
| | | | | | | which were otherwise cluttering the global namespace. git-svn-id: svn://busybox.net/trunk/busybox@10121 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Egor Dudabug12004-09-241-0/+5
| | | | | | | | | | | | | | | | Attached patch prevents modprobe from trying to call 'insmod (null)' whenever nonexistent module is either passed to modprobe via command line or mentioned in modules.dep this replaces cryptic error sh: Syntax error: word unexpected (expecting ")") with modprobe: module some-module not found. egor. git-svn-id: svn://busybox.net/trunk/busybox@9276 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Mike Castle to cleanup some modutils issues, inandersen2004-08-191-59/+33
| | | | | | | particular making alias support work better. git-svn-id: svn://busybox.net/trunk/busybox@9130 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Only pass modprobe module params with 2.6.x kernel support.andersen2004-08-161-2/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@9103 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Christian Ostheimer writes:andersen2004-08-141-1/+1
| | | | | | | | | | | | | | Hello, function build_dep in modprobe.c assumes that dependencies of one module have not more than 255 chars; that is not sufficient in kernel 2.6.7 (alsa sound modules). - Below is a diff that solves the problem for me. With regards, Christian Ostheimer git-svn-id: svn://busybox.net/trunk/busybox@9093 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Mike Castle, dont print an empty line (patch modified by me tobug12004-08-111-9/+13
| | | | | | | change formatting). git-svn-id: svn://busybox.net/trunk/busybox@9086 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Phil Blundellto improve substring matchbug12004-08-111-1/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9083 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Willian Barsse wrotebug12004-08-111-8/+7
| | | | | | | | | | | | | | | | | | | | "There seems to be a slight problem with the "mod_strcmp" function in modprobe.c, it scans for the first occurence of the module name in the "mod_path" variable and expects it to be the last path element. ie /lib/modules/2.4.22-debug/kernel/fs/vfat in my example. The comparison will always fail if mod_path contains another substring matching the module name." Robert McQueen wrote "Although William Barsse's patch fixed mod_strcmp for 2.4 kernels, there was a remaining problem which prevented it from working for me. I've just tracked it down - when you enable kernel 2.6 module support it hard-wired the extension to .ko instead of checking at runtime like the other places where 2.4 differs from 2.6. The attached patch fixes this for me." git-svn-id: svn://busybox.net/trunk/busybox@9082 69ca8d6d-28ef-0310-b511-8ec308f3f277
* William Barsse writes:andersen2004-08-031-10/+9
| | | | | | | | | | | | | | | | fixes two other issues (plus the previous as well) with a 2.4 kernel : - should be able to modprobe an already loaded module and get 0 return code : # modprobe <something> && modprobe <something> && echo "ok" || echo "failed" .... failed Well, hope this helps and that I didn't screw up again, - William git-svn-id: svn://busybox.net/trunk/busybox@9057 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Mike Snitzer <snitzer@gmail.com>:sandman2004-07-221-3/+6
| | | | | | | | | | Support for /etc/modprobe.conf (for 2.6 kernels) should likely be added to bb's modprobe, see attached patch. modprobe.conf is just a (even simpler) variant of modules.conf git-svn-id: svn://busybox.net/trunk/busybox@8996 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patrick Huesmann writes:andersen2004-06-221-3/+26
| | | | | | | | | | | | | | | | Hi, There was some problem with busybox modprobe. For details see http://www.busybox.net/lists/busybox/2004-May/011507.html I made a patch against busybox-1.00-pre10 to fix that one. This is a slight variant of Patrick's patch with a slightly cleaner implementation of mod_strcmp() -Erik git-svn-id: svn://busybox.net/trunk/busybox@8916 69ca8d6d-28ef-0310-b511-8ec308f3f277