Hi, I would like to suggest what I consider a enhancement, albeit minor, to the way modules are auto loaded. I could not find a way to load different modules according to the selected runlevel, so I slightly modified /etc/init.d/modules so that: - it first try a file /etc/modules.autoload/<kernel>.<softlevel> - if this file does not exist, it then proceed as usual with /etc/modules.autoload/<kernel> Motivation: - I have an "offline" runlevel that I use when I am on the road. I noticed that if I autoload the module for my WiFi card (ipw2200), it automatically connects to possible open access points, which I don't want. Using the trick I suggest, I use a file kernel-2.6.offline that doesn't contain ipw2200, and I am *really* offline... - Well, it seems to me that it fits the Gentoo spirit.
Created attachment 98410 [details] Patched /etc/init.d/modules As you can see, I only changed a few lines in the start() function, when it comes to the "autoload" variable.
Could you supply a diff please?
Created attachment 98435 [details] diff modules modules.original Sure, here it is. (I am not very good at diff/patch, so feel free to ask again if this is not exactly what you expected)
lets see ... good idea, comments on your patch: - use `diff -u` when posting to bugzilla - do not quote inside of [[ ... ]]
Created attachment 99408 [details] diff -u modules.original modules.new Here is a new diff: - correct format (-u) - correct order of arguments: old file, new file (according to Gentoo dev doc) I did not remove the double quotes because I don't understand why they are harmful. I welcome any explanation :-)
Thanks for the patch, this is in baselayout-1.13.0_alpha6