modprobe: use more than one config directory
authorTom Gundersen <teg@jklm.no>
Thu, 26 May 2011 18:57:56 +0000 (20:57 +0200)
committerJon Masters <jcm@jonmasters.org>
Tue, 31 May 2011 03:01:27 +0000 (23:01 -0400)
commit9454d710137be3799f343cc9d0f833f0802e2111
tree03d0cd36b3d3db2db3cc1961c16e48086bf83a17
parent69c099d4371aef5df2129816fefe50d51cb6ae19
modprobe: use more than one config directory

Read config files from the following directories:

/run/modprobe.d
config files generated at runtime, useful e.g. for compatibility
with non-standard config files (such as /etc/rc.conf in Arch)
/etc/modprobe.d
config files manually created by the administrator
/lib/modprobe.d
config files installed by third-party packages
/usr/local/lib/modprobe.d
config files during development of third-party packages

This scheme is the same as the one employed by udev, systemd and possibly
others.

A follow-up patch lets files in one directory override files in others, as
done elsewhere.

Cc: Jon Masters <jcm@jonmasters.org>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Aaron Griffin <aaron@archlinux.org>
Cc: Thomas B├Ąchler <thomas@archlinux.org>
Signed-off-by: Tom Gundersen <teg@jklm.no>
Signed-off-by: Jon Masters <jcm@jonmasters.org>
modprobe.c