On 08/16/2016 07:20 PM, William Hubbs wrote: > All, > > I have received a request to implement a feature in OpenRC to allow > multiple software packages to drop files in a directory, /etc/modules.d > for example, which would define modules the /etc/init.d/modules script > would load. > > The design I'm thinking of would not change the use of > /etc/conf.d/modules, but the entries from the files would be added to > the appropriate module lists after the ones listed there. > > I'll write more about the design as I get closer to formulating the > details, but at this point I just want to know what others thinkabout > this feature. > > Thanks, > > William > Just a side note on how I currently take advantage of the modules initscript: I have several symlinks, one for each set of modules that I want to control. Then I create a corresponding conf.d based off of the modules conf.d. So, for example, /etc/init.d/vbox-modules->/etc/init.d/modules just controls the vbox modules. This gives me fine control over module sets without having to worry about all of them at once. I can have certain sets of modules start in different runlevels, and I can independently load and unload sets of modules when necessary. If you do end up switching to some system that reads a directory, I'd like to see something that if the name of the initscript isn't modules, it sources just the corresponding file, rather than the whole dir. -- NP-Hardass