modprobe: implement precedence of configuration directories

Configuration files are parsed in alphabetic order, regardles of what
directory they reside in. Furthermore, if several files by the same name
exist in different directories only the one in the directory with highest
precedence is loaded.

The order of precedence is /run, /etc, /usr/local/lib, /lib.

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>
1 file changed